Function

CTFontCopyAvailableTables(_:_:)

Returns an array of font table tags.

Declaration

func CTFontCopyAvailableTables(_ font: CTFont, _ options: CTFontTableOptions) -> CFArray?

Parameters

font

The font reference.

options

The font table options.

Return Value

An array of CTFontTableTag values for the given font and the supplied options.

Discussion

The returned set will contain unboxed values, which can be extracted like so:

CTFontTableTag tag = (CTFontTableTag)(uintptr_t)CFArrayGetValueAtIndex(tags, index);

See Also

Getting Font Table Data