Applies STAT information from a Stylespace to a variable font.
Project description
statmake
statmake
takes a user-written Stylespace that defines OpenType STAT
information for an entire font family and then (potentially subsets and) applies it to a specific variable font. This spares users from having to deal with raw TTX dumps and juggling with nameIDs.
Installation
The easiest way is by installing it with pip
. You need at least Python 3.6.
pip3 install statmake
Usage
- Write a Stylespace file that describes each stop of all axes available in the entire family. See tests/data/Test.stylespace for an annotated example.
- If you have one or more Designspace files which do not define all axes available to the family, you have to annotate them with the missing axis locations to get a complete
STAT
table. See the lib key at the bottom of tests/data/Test_Wght_Upright.designspace and tests/data/Test_Wght_Italic.designspace for an example. - Generate the variable font(s) as normal
- Run
statmake your.stylespace variable_font.designspace variable_font.ttf
. Take care to use the Designspace file that was used to generate the font to get the correct missing axis location definitions.
Q: Can I please have something other than a .plist file?
Yes, but you have to convert it to .plist
yourself, as statmake currently only read .plist
files. One possible converter is Adam Twardoch's yaplon.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
statmake-0.1.4.tar.gz
(6.6 kB
view hashes)