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

# CTFontManagerRegisterFontDescriptors(_:_:_:_:)

Registers font descriptors with the font manager.

```
func CTFontManagerRegisterFontDescriptors(_ fontDescriptors: CFArray, _ scope: CTFontManagerScope, _ enabled: Bool, _ registrationHandler: ((CFArray, Bool) -> Bool)?)
```

## Parameters

`fontDescriptors`

An array of font descriptors to register. The font descriptor keys for registration are [`kCTFontURLAttribute`](/documentation/CoreText/kCTFontURLAttribute), [`kCTFontNameAttribute`](/documentation/CoreText/kCTFontNameAttribute), [`kCTFontFamilyNameAttribute`](/documentation/CoreText/kCTFontFamilyNameAttribute), or [`kCTFontRegistrationUserInfoAttribute`](/documentation/CoreText/kCTFontRegistrationUserInfoAttribute).

`scope`

A scope constant that defines the availability and lifetime of the registration. If you specify [`CTFontManagerScope.persistent`](/documentation/CoreText/CTFontManagerScope/persistent) when you register fonts on iOS, those fonts aren’t automatically available to other processes. Other processes can call [`CTFontManagerRequestFonts(_:_:)`](/documentation/CoreText/CTFontManagerRequestFonts(_:_:)) to get access to those fonts. See [`CTFontManagerScope`](/documentation/CoreText/CTFontManagerScope) for more details.

`enabled`

A Boolean value that indicates whether the font descriptors should be enabled for font descriptor matching and discoverable though [`CTFontManagerRequestFonts(_:_:)`](/documentation/CoreText/CTFontManagerRequestFonts(_:_:)).

`registrationHandler`

A block called as errors arise or upon completion.

    The block’s     `errors`     parameter contains an array of     <doc://com.apple.documentation/documentation/CoreFoundation/CFError>     references; an empty array indicates no errors. Each error reference contains a     <doc://com.apple.documentation/documentation/CoreFoundation/CFArray>     of font descriptors corresponding to [`kCTFontManagerErrorFontDescriptorsKey`](/documentation/CoreText/kCTFontManagerErrorFontDescriptorsKey)    . These represent the font descriptors causing the error and failing to register successfully.

    This block may be called multiple times during the registration process. The     `done`     parameter becomes     <doc://com.apple.documentation/documentation/Swift/true>     when the registration process completes. Return     <doc://com.apple.documentation/documentation/Swift/false>     from the block to stop the registration operation, like after receiving an error.

## Discussion

Registered fonts are discoverable through font descriptor matching in the calling process.

Fonts descriptors registered in a disabled state (the `enabled` parameter set to <doc://com.apple.documentation/documentation/Swift/false>) aren’t immediately available for descriptor matching, but the font manager knows the descriptors can be made available if necessary. You can enable these descriptors by calling this function again with the `enabled` parameter set to <doc://com.apple.documentation/documentation/Swift/true>. This operation may fail if there’s another registered and enabled font with the same PostScript name.

---

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)