CTFontManagerUnregisterFontURLs(_:_:_:)
Unregisters fonts from the specified font URLs with the font manager.
Declaration
func CTFontManagerUnregisterFontURLs(_ fontURLs: CFArray, _ scope: CTFontManagerScope, _ registrationHandler: ((CFArray, Bool) -> Bool)?)Parameters
- fontURLs:
An array of font URLs.
- scope:
A scope constant that defines the availability and lifetime of the registration. This value should match the scope the fonts are registered in. See Ctfontmanagerscope for more details.
- registrationHandler:
A block called as errors arise or upon completion.
The block’s
errorsparameter contains an array of Cferror references; an empty array indicates no errors unregistering the files. Each error reference contains a Cfarray of font URLs corresponding to Kctfontmanagererrorfonturlskey. These URLs represent the font files causing the error and failing to unregister successfully.This block may be called multiple times during the unregistration process. The
doneparameter 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
CTFontDescriptorMatchFontDescriptorsWithProgressHandler(_:_:_:)CTFontManagerCompareFontFamilyNames(_:_:_:)CTFontManagerCopyAvailableFontFamilyNames()CTFontManagerCopyAvailableFontURLs()CTFontManagerCopyAvailablePostScriptNames()CTFontManagerCreateFontDescriptorFromData(_:)CTFontManagerCreateFontDescriptorsFromURL(_:)CTFontManagerCreateFontRequestRunLoopSource(_:_:)CTFontManagerEnableFontDescriptors(_:_:)CTFontManagerGetAutoActivationSetting(_:)CTFontManagerGetScopeForURL(_:)CTFontManagerIsSupportedFont(_:)CTFontManagerRegisterFontsForURL(_:_:_:)CTFontManagerRegisterFontsForURLs(_:_:_:)CTFontManagerRegisterGraphicsFont(_:_:)