Instance Property

variationAxes

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

Declaration

var variationAxes: CFArray? { get }

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

Working with Variations

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

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

var variations: CFDictionary?

Returns the variation specification dictionary for a font.

Font Variation Axis Keys

Keys used for a font variation axis dictionary.