Function

CGFontGetGlyphAdvances

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

Declaration

bool CGFontGetGlyphAdvances(CGFontRef font, const CGGlyph *glyphs, size_t count, int *advances);

Parameters

font

The font object associated with the provided glyphs.

glyphs

An array of glyphs.

count

The number of glyphs in the array.

advances

On output, an array of of advance widths for the provided glyphs.

Return Value

YES unless the advance widths can’t be provided for some reason.

See Also

Getting Font Information

CGFontGetTypeID

Returns the Core Foundation type identifier for Core Graphics fonts.

CGFontCopyVariationAxes

Returns an array of the variation axis dictionaries for a font.

CGFontCopyVariations

Returns the variation specification dictionary for a font.

CGFontCopyFullName

Returns the full name associated with a font object.

CGFontGetAscent

Returns the ascent of a font.

CGFontGetDescent

Returns the descent of a font.

CGFontGetLeading

Returns the leading of a font.

CGFontGetCapHeight

Returns the cap height of a font.

CGFontGetXHeight

Returns the x-height of a font.

CGFontGetFontBBox

Returns the bounding box of a font.

CGFontGetItalicAngle

Returns the italic angle of a font.

CGFontGetStemV

Returns the thickness of the dominant vertical stems of glyphs in a font.

CGFontGetGlyphBBoxes

Get the bounding box of each glyph in an array.

CGFontGetGlyphWithGlyphName

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

CGFontCopyGlyphNameForGlyph

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

CGFontGetNumberOfGlyphs

Returns the number of glyphs in a font.

CGFontGetUnitsPerEm

Returns the number of glyph space units per em for the provided font.