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>?>?) -> BoolParameters
- 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.
See Also
Functions
CTFontDescriptorMatchFontDescriptorsWithProgressHandler(_:_:_:)CTFontManagerCompareFontFamilyNames(_:_:_:)CTFontManagerCopyAvailableFontFamilyNames()CTFontManagerCopyAvailableFontURLs()CTFontManagerCopyAvailablePostScriptNames()CTFontManagerCreateFontDescriptorFromData(_:)CTFontManagerCreateFontDescriptorsFromURL(_:)CTFontManagerCreateFontRequestRunLoopSource(_:_:)CTFontManagerEnableFontDescriptors(_:_:)CTFontManagerGetAutoActivationSetting(_:)CTFontManagerGetScopeForURL(_:)CTFontManagerIsSupportedFont(_:)CTFontManagerRegisterFontsForURLs(_:_:_:)CTFontManagerRegisterGraphicsFont(_:_:)CTFontManagerSetAutoActivationSetting(_:_:)