Contents

copy(withVariations:)

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

Declaration

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

Parameters

  • 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

Working with Variations