CTFontManagerIsSupportedFont(_:)
Determines whether a file is in a supported font format.
Declaration
func CTFontManagerIsSupportedFont(_ fontURL: CFURL) -> BoolParameters
- fontURL:
A file URL.
Return Value
true if the file is in a supported font format; otherwise, false.
Discussion
This function doesn’t validate any font data, so you must handle registration or font descriptor creation failures yourself.
See Also
Functions
CTFontDescriptorMatchFontDescriptorsWithProgressHandler(_:_:_:)CTFontManagerCompareFontFamilyNames(_:_:_:)CTFontManagerCopyAvailableFontFamilyNames()CTFontManagerCopyAvailableFontURLs()CTFontManagerCopyAvailablePostScriptNames()CTFontManagerCreateFontDescriptorFromData(_:)CTFontManagerCreateFontDescriptorsFromURL(_:)CTFontManagerCreateFontRequestRunLoopSource(_:_:)CTFontManagerEnableFontDescriptors(_:_:)CTFontManagerGetAutoActivationSetting(_:)CTFontManagerGetScopeForURL(_:)CTFontManagerRegisterFontsForURL(_:_:_:)CTFontManagerRegisterFontsForURLs(_:_:_:)CTFontManagerRegisterGraphicsFont(_:_:)CTFontManagerSetAutoActivationSetting(_:_:)