Contents

CTFontManagerCopyRegisteredFontDescriptors(_:_:)

Retrieves the font descriptors that were registered with the font manager.

Declaration

func CTFontManagerCopyRegisteredFontDescriptors(_ scope: CTFontManagerScope, _ enabled: Bool) -> CFArray

Parameters

  • scope:

    A scope constant that defines the availability and lifetime of the registration. If you specify Persistent, only macOS can return fonts registered by any process. Other platforms can only return font descriptors registered by the app’s process. See Ctfontmanagerscope for more details.

  • enabled:

    A Boolean value that indicates whether to return registered font descriptors that are enabled or disabled.

Return Value

An array of font descriptors registered by the app. The array may be empty if nothing is registered.

See Also

Functions