---
title: "CTFontCollectionCreateMatchingFontDescriptors(_:)"
framework: coretext
role: symbol
role_heading: Function
path: "coretext/ctfontcollectioncreatematchingfontdescriptors(_:)"
---

# CTFontCollectionCreateMatchingFontDescriptors(_:)

Returns an array of font descriptors matching the collection.

## Declaration

```swift
func CTFontCollectionCreateMatchingFontDescriptors(_ collection: CTFontCollection) -> CFArray?
```

## Parameters

- `collection`: The font collection reference.

## Return Value

Return Value A retained reference to an array of normalized font descriptors matching the collection definition.

## See Also

### Getting Font Descriptors

- [CTFontCollectionCreateMatchingFontDescriptorsWithOptions(_:_:)](coretext/ctfontcollectioncreatematchingfontdescriptorswithoptions(_:_:).md)
- [CTFontCollectionCreateMatchingFontDescriptorsSortedWithCallback(_:_:_:)](coretext/ctfontcollectioncreatematchingfontdescriptorssortedwithcallback(_:_:_:).md)
- [CTFontCollectionCreateMatchingFontDescriptorsForFamily(_:_:_:)](coretext/ctfontcollectioncreatematchingfontdescriptorsforfamily(_:_:_:).md)
- [CTFontCollectionSortDescriptorsCallback](coretext/ctfontcollectionsortdescriptorscallback.md)
