Instance Property


Returns the variation specification dictionary for a font.


var variations: CFDictionary? { get }



A font object.

Return Value

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


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

Working with Variations

func copy(withVariations: CFDictionary?) -> CGFont?

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

var variationAxes: CFArray?

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

Font Variation Axis Keys

Keys used for a font variation axis dictionary.