Function

CTFontManagerRegisterFontsForURL(_:_:_:)

Registers fonts from the specified font URL with the Font Manager. Registered fonts are discoverable through font descriptor matching.

Declaration

func CTFontManagerRegisterFontsForURL(_ fontURL: CFURL, _ scope: CTFontManagerScope, _ error: UnsafeMutablePointer<Unmanaged<CFError>?>?) -> Bool

Parameters

fontURL

The font URL.

scope

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

error

Pointer to a CFError object which, in case of failed registration, contains error information.

Return Value

Returns true if registration of the fonts was successful, otherwise false.