Function

CTFontManagerUnregisterFontsForURLs(_:_:_:)

Unregisters fonts from the specified array of font URLs with the Font Manager. Unregistered fonts are no longer discoverable through font descriptor matching.

Declaration

func CTFontManagerUnregisterFontsForURLs(_ fontURLs: CFArray, _ scope: CTFontManagerScope, _ errors: UnsafeMutablePointer<Unmanaged<CFArray>?>?) -> Bool

Parameters

fontURLs

Array of font URLs.

scope

Scope constant defining the availability and lifetime of the registration. See CTFontManagerScope for values to pass for this parameter.

errors

Pointer to an array of CFError objects which, in case of failed registration, contain error information. Each error contains a CFArray of font URLs corresponding to kCTFontManagerErrorFontURLsKey. These URLs represent the font files that caused the error and were not successfully registered. The array must be released by the caller. Can be NULL.

Return Value

Returns true if unregistration of all font URLs was successful, otherwise false.