<!--
{
  "availability" : [
    "iOS: 12.0.0 -",
    "iPadOS: 12.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.7.0 -",
    "tvOS: 12.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 5.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreText",
  "identifier" : "/documentation/CoreText/CTFontCollectionCreateMatchingFontDescriptorsWithOptions(_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Core Text"
    ],
    "preciseIdentifier" : "c:@F@CTFontCollectionCreateMatchingFontDescriptorsWithOptions"
  },
  "title" : "CTFontCollectionCreateMatchingFontDescriptorsWithOptions(_:_:)"
}
-->

# CTFontCollectionCreateMatchingFontDescriptorsWithOptions(_:_:)

Creates an array of font descriptors that match the specified collection.

```
func CTFontCollectionCreateMatchingFontDescriptorsWithOptions(_ collection: CTFontCollection, _ options: CFDictionary?) -> CFArray?
```

## Parameters

`collection`

The font collection reference.

`options`

The options dictionary. Passing in `NULL` returns the same results as calling [`CTFontCollectionCreateMatchingFontDescriptors(_:)`](/documentation/CoreText/CTFontCollectionCreateMatchingFontDescriptors(_:)), which uses the options specified during the collection’s creation.

## Return Value

An array of [`CTFontDescriptor`](/documentation/CoreText/CTFontDescriptor) objects that match the collection definition, or `NULL` if there are none.

## Discussion

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)