---
title: "CTFontCollectionCreateWithFontDescriptors(_:_:)"
framework: coretext
role: symbol
role_heading: Function
path: "coretext/ctfontcollectioncreatewithfontdescriptors(_:_:)"
---

# CTFontCollectionCreateWithFontDescriptors(_:_:)

Returns a new font collection based on the given array of font descriptors.

## Declaration

```swift
func CTFontCollectionCreateWithFontDescriptors(_ queryDescriptors: CFArray?, _ options: CFDictionary?) -> CTFontCollection
```

## Parameters

- `queryDescriptors`: An array of font descriptors.
- `options`: The options dictionary. For possible values, see Constants.

## Return Value

Return Value A new font collection based on the provided font descriptors.

## Discussion

Discussion The contents of the returned collection are defined by matching the provided descriptors against all available font descriptors.

## See Also

### Creating Font Collections

- [CTFontCollectionCreateFromAvailableFonts(_:)](coretext/ctfontcollectioncreatefromavailablefonts(_:).md)
- [CTFontCollectionCreateCopyWithFontDescriptors(_:_:_:)](coretext/ctfontcollectioncreatecopywithfontdescriptors(_:_:_:).md)
- [CTFontCollectionCreateMutableCopy(_:)](coretext/ctfontcollectioncreatemutablecopy(_:).md)
