Function

CGFontCopyVariations

Returns the variation specification dictionary for a font.

Declaration

CFDictionaryRef CGFontCopyVariations(CGFontRef font);

Parameters

font

A font object.

Return Value

The variation specification dictionary for the font. Returns NULL if the font doesn't support variations.

Discussion

The variation specification dictionary contains keys that correspond to the variation axis names of the font. Each key is a variation axis name. The value for each key is the value specified for that particular variation axis represented as a CFNumber object.

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.

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.

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