mutator¶
Instantiate a variation font. Run, eg:
$ python mutator.py ./NotoSansArabic-VF.ttf wght=140 wdth=85
-
fontTools.varLib.mutator.
instantiateVariableFont
(varfont, location, inplace=False)[source]¶ Generate a static instance from a variable TTFont and a dictionary defining the desired location along the variable font’s axes. The location values must be specified as user-space coordinates, e.g.:
{‘wght’: 400, ‘wdth’: 100}By default, a new TTFont object is returned. If
inplace
is True, the input varfont is modified and reduced to a static font.