Type Alias

CGGlyph

An index into the internal glyph table of a font.

Declaration

typedef CGFontIndex CGGlyph;

Discussion

When drawing text, you typically specify a sequence of characters. However, Core Graphics also allows you to use CGGlyph values to specify glyphs. In either case, Core Graphics renders the text using font data provided by the Apple Type Services (ATS) framework.

You provide CGGlyph values to the functions CGContextShowGlyphs and CGContextShowGlyphsAtPoint. These functions display an array of glyphs at the current text position or at a position you specify, respectively.

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.

kCGGlyphMax

The maximum allowed value of a CGGlyph.

CGFontIndex

An index into a font table.

kCGFontIndexMax

The maximum allowed value of a CGFontIndex.

kCGFontIndexInvalid

A value representing an invalid CGFontIndex.