Contents

CTFontManagerUnregisterFontDescriptors(_:_:_:)

Unregisters font descriptors with the font manager.

Declaration

func CTFontManagerUnregisterFontDescriptors(_ fontDescriptors: CFArray, _ scope: CTFontManagerScope, _ registrationHandler: ((CFArray, Bool) -> Bool)?)

Parameters

  • fontDescriptors:

    An array of font descriptors to unregister.

  • scope:

    A scope constant that defines the availability and lifetime of the registration. See Ctfontmanagerscope for more details.

  • registrationHandler:

    A block called as errors arise or upon completion.

    The block’s errors parameter contains an array of Cferror references; an empty array indicates no errors unregistering the font descriptors. Each error reference contains a Cfarray of font descriptors corresponding to Kctfontmanagererrorfontdescriptorskey. These represent the font descriptors causing the error and failing to unregister successfully.

    This block may be called multiple times during the unregistration process. The done parameter becomes True when the unregistration process completes. Return False from the block to stop the unregistration operation, like after receiving an error.

Discussion

Unregistered fonts don’t participate in font descriptor matching.

See Also

Functions