Function

CTFontCopyCharacterSet(_:)

Returns the Unicode character set of the font.

Declaration

func CTFontCopyCharacterSet(_ font: CTFont) -> CFCharacterSet

Parameters

font

The font reference.

Return Value

A retained reference to the font's character set.

Discussion

The returned character set covers the nominal referenced by the font's Unicode 'cmap’ table.

See Also

Working With Encoding

func CTFontGetStringEncoding(CTFont) -> CFStringEncoding

Returns the best string encoding for legacy format support.

func CTFontCopySupportedLanguages(CTFont) -> CFArray

Returns an array of languages supported by the font.