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

# CTFontManagerCreateFontDescriptorsFromData(_:)

Creates an array of font descriptors for the fonts in the supplied data.

```
func CTFontManagerCreateFontDescriptorsFromData(_ data: CFData) -> CFArray
```

## Parameters

`data`

The font data.

## Return Value

An array of font descriptors.

## Discussion

This is the preferred function when the data contains a font collection (TTC or OTC). This function returns an empty array in the event of invalid or unsupported font data.

> Note:
> The font descriptors are not available through font descriptor matching. As a result, you can’t directly look for the fonts by name with functions like ``doc://com.apple.coretext/documentation/CoreText/CTFontCreateWithName(_:_:_:)``. If you wish to make the font available for name matching, use ``doc://com.apple.coretext/documentation/CoreText/CTFontManagerRegisterFontURLs(_:_:_:_:)`` instead.

## See Also

[`CTFontManagerCreateFontDescriptorFromData`](/documentation/CoreText/CTFontManagerCreateFontDescriptorFromData(_:))

Creates a font descriptor representing the font in the supplied data.

[`CTFontManagerRegisterFontURLs`](/documentation/CoreText/CTFontManagerRegisterFontURLs(_:_:_:_:))

Registers fonts from the specified font URLs with the font manager.



---

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)