Function

CGFontCopyTableTags

Returns an array of tags that correspond to the font tables for a font.

Declaration

CFArrayRef CGFontCopyTableTags(CGFontRef font);

Parameters

font

A CGFont object.

Return Value

An array of font table tags.

Discussion

Each entry in the returned array is a four-byte value that represents a single TrueType or OpenType font table tag. To obtain a tag at index k in a manner that is appropriate for 32-bit and 64-bit architectures, you need to use code similar to the following:

tag = (uint32_t)(uintptr_t)CFArrayGetValue(table, k);

See Also

Working With Font Tables

CGFontCopyTableForTag

Returns the font table that corresponds to the provided tag.