Function

CTFontCopyCharacterSet

Returns the Unicode character set of the font.

Declaration

CFCharacterSetRef CTFontCopyCharacterSet(CTFontRef font);

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

CTFontGetStringEncoding

Returns the best string encoding for legacy format support.

CTFontCopySupportedLanguages

Returns an array of languages supported by the font.