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

# CTFontCollectionCreateWithFontDescriptors(_:_:)

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

```
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

A new font collection based on the provided font descriptors.

## Discussion

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

---

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)