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


CFArrayRef CGFontCopyTableTags(CGFontRef font);



A CGFont object.

Return Value

An array of font table tags.


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


Returns the font table that corresponds to the provided tag.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software