Function

CGFontCopyVariationAxes

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

Declaration

CFArrayRef CGFontCopyVariationAxes(CGFontRef font);

Parameters

font

A CGFont object.

Return Value

An array of the variation axis dictionaries. Returns NULL if the font doesn't support variations.

Discussion

A variation axis is a range included in a font by the font designer that allows a font to produce different type styles. Each variation axis dictionary contains key-value pairs that specify the variation axis name and the minimum, maximum, and default values for that variation axis.

See Also

Getting Font Information

CGFontGetTypeID

Returns the Core Foundation type identifier for Core Graphics fonts.

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.

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.