Function

CGFontGetGlyphBBoxes

Get the bounding box of each glyph in an array.

Declaration

bool CGFontGetGlyphBBoxes(CGFontRef font, const CGGlyph *glyphs, size_t count, CGRect *bboxes);

Parameters

font

A font object.

glyphs

A array of glyphs.

count

The number of items in the glyphs array.

bboxes

On return, the bounding boxes for each glyph.

Return Value

false if bounding boxes can't be retrieved for any reason; true otherwise.

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.

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.

CGFontGetGlyphAdvances

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

CGFontGetUnitsPerEm

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

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