Split a Variable Font Into Separate Roman and Italic Fonts
In the YAML file, we first define two entries under the ranges
key, one for the roman and one for the italic variable font.
-
ital
: The italic axis is fixed to 0 (Roman) and 1 (Italic) respectively. -
wght
: The original range of the weight axis is preserved. -
YTDE
: The original range of the descender depth axis is preserved.
ranges:
- id: split-roman
axes:
- tag: ital
def: 0
- tag: wght
- tag: YTDE
- id: split-italic
axes:
- tag: ital
def: 1
- tag: wght
- tag: YTDE
Note that you can omit the tags of axes that should stay as they are. They are just listed here for clarity.
And finally, under the subsets
key, we add two entries referencing our range IDs. The modified fonts will be saved in the directory “Split-VF-Italic”. The directory will be created if necessary. The out_dir
directory path is relative to the export destination.
subsets:
- range: split-roman
out_dir: Split-VF-Italic
- range: split-italic
out_dir: Split-VF-Italic
Download the full YAML file: split-italic-vf.corretto.yaml