Function

CTFontCopyVariation

Returns a variation dictionary from the font reference.

Declaration

CFDictionaryRef CTFontCopyVariation(CTFontRef font);

Parameters

font

The font reference.

Return Value

The current variation instance as a dictionary.

Discussion

The keys for each variation correspond to the variation identifier obtained via kCTFontVariationAxisIdentifierKey, which represents the four-character axis code as a CFNumber object.

See Also

Working With Font Variations

CTFontCopyVariationAxes

Returns an array of variation axes.