# Buildsheet autogenerated by ravenadm tool -- Do not edit. NAMEBASE= python-statmake VERSION= 0.6.0 KEYWORDS= python VARIANTS= v12 v13 SDESC[v12]= Applies STAT Stylespace to a variable font (3.12) SDESC[v13]= Applies STAT Stylespace to a variable font (3.13) HOMEPAGE= https://github.com/daltonmaag/statmake CONTACT= Python_Automaton[python@ironwolf.systems] DOWNLOAD_GROUPS= main SITES[main]= PYPIWHL/85/86/beef05605ca6d316906406151cc2b8969fe92d8e24f78bb7850bd42c38bc DISTFILE[1]= statmake-0.6.0-py3-none-any.whl:main DIST_SUBDIR= python-src DF_INDEX= 1 SPKGS[v12]= single SPKGS[v13]= single OPTIONS_AVAILABLE= PY312 PY313 OPTIONS_STANDARD= none VOPTS[v12]= PY312=ON PY313=OFF VOPTS[v13]= PY312=OFF PY313=ON DISTNAME= statmake-0.6.0.dist-info GENERATED= yes [PY312].RUN_DEPENDS_ON= python-attrs:single:v12 python-cattrs:single:v12 python-fonttools:single:v12 [PY312].USES_ON= python:v12,wheel [PY313].RUN_DEPENDS_ON= python-attrs:single:v13 python-cattrs:single:v13 python-fonttools:single:v13 [PY313].USES_ON= python:v13,wheel [FILE:3392:descriptions/desc.single] # 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.7. ` pip3 install statmake ` ## Usage ### External Stylespace file, stand-alone or referenced from a Designspace file If you are producing more than one variable font (i.e. you have multiple Designspace files), you can avoid duplicated information by writing a single all-encompassing Stylespace file which statmake will subset for each variable font. **Attention:** A `STAT` table is supposed to describe a font's relationship to the _entire_ family. If you have separate upright and italic variable fonts with a `wght` axis each, you need to mark each font's position on the `ital` axis _in the Designspace lib `org.statmake.additionalLocations` key_. The Designspace `` elements are not supposed to hold this information, so it must be done in a separate lib key. 1. 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. You can also use it as a starting point. 2. You can have the file stand-alone or use the Designspace lib's `org.statmake.stylespacePath` key to store the path to the Stylespace file relative to the Designspace file. See [tests/data/TestExternalStylespace.designspace] for an example. 3. 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. 4. Generate the variable font(s) as normal 5. If... 1. ... you store the Stylespace file stand-alone: run `statmake --designspace variable_font.designspace --stylespace your.stylespace variable_font.ttf`. 2. ... you store the Stylespace inline in the Designspace file or as a stand-alone file and added the relative path to it in the Designspace's `org.statmake.stylespacePath` key: run `statmake --designspace variable_font.designspace variable_font.ttf` Be sure to use the Designspace file that was used to generate the font to get the correct missing axis location definitions. ### Designspace file with inline Stylespace data If you are producing a single variable font containing an entire family, this approach will save you an external file. 1. Write the file as above, point 1. 2. Insert it into the Designspace file's lib under the `org.statmake.stylespace` key. See [tests/data/TestInlineStylespace.designspace] for an example. 3. Proceed from point 3 above. ## 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]. ## Q: I'm getting errors about how statmake doesn't like the way I wrote the Stylespace, but I want the data to be that way? Use a custom script with the https://fonttools.readthedocs.io/en/latest/otlLib/builder.html#fontTools.otlLib.builder.buildStatTable API instead. [FILE:121:distinfo] 37718cc7b4776877f6847ed457943489d6b674bbd305ece2ee6931172b137d38 10894 python-src/statmake-0.6.0-py3-none-any.whl