Type Alias

CGFontIndex

An index into a font table.

Declaration

typedef unsigned short CGFontIndex;

Discussion

This integer type provides an additional way to specify a glyph identifier. CGFontIndex is equivalent to CGGlyph, and you can use constants of either type interchangeably.

See Also

Working with Glyphs

CGFontGetNumberOfGlyphs

Returns the number of glyphs in a font.

CGFontCopyGlyphNameForGlyph

Returns the glyph name of the specified glyph in the specified font.

CGFontGetGlyphWithGlyphName

Returns the glyph for the glyph name associated with the specified font object.

CGFontGetGlyphBBoxes

Get the bounding box of each glyph in an array.

CGFontGetGlyphAdvances

Gets the advance width of each glyph in the provided array.

CGGlyph

An index into the internal glyph table of a font.

kCGGlyphMax

The maximum allowed value of a CGGlyph.

kCGFontIndexMax

The maximum allowed value of a CGFontIndex.

kCGFontIndexInvalid

A value representing an invalid CGFontIndex.

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