Function

CGFontCreateCopyWithVariations

Creates a copy of a font using a variation specification dictionary.

Declaration

CGFontRef CGFontCreateCopyWithVariations(CGFontRef font, CFDictionaryRef variations);

Parameters

font

The font to copy.

variations

A variation specification dictionary that contains keys corresponding to the variation axis names of the font. Each key in the dictionary is a variation axis name. The value for each key is the value specified for that particular variation axis represented as a CFNumber object. If a variation axis name is not specified in variations, then the current value from font is used.

Return Value

The font object.

See Also

Creating a CGFont Object

CGFontCreateWithDataProvider

Creates a font object from data supplied from a data provider.

CGFontCreateWithFontName

Creates a font object corresponding to the font specified by a PostScript or full name.

CGFontCreateWithPlatformFont

Creates a font object from an Apple Type Services (ATS) font.

Deprecated