Contents

CTFontManagerIsSupportedFont(_:)

Determines whether a file is in a supported font format.

Declaration

func CTFontManagerIsSupportedFont(_ fontURL: CFURL) -> Bool

Parameters

  • 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