Metadata-Version: 2.1
Name: statmake
Version: 0.1.2
Summary: Applies STAT information from a Stylespace to a variable font.
Home-page: https://github.com/daltonmaag/statmake
License: MIT
Author: Nikolaus Waxweiler
Author-email: nikolaus.waxweiler@daltonmaag.com
Requires-Python: >=3.6,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Requires-Dist: attrs (>=18.2)
Requires-Dist: cattrs (>=0.9.0,<0.10.0)
Requires-Dist: fonttools[ufo] (>=3.38,<4.0)
Project-URL: Repository, https://github.com/daltonmaag/statmake
Description-Content-Type: text/markdown

# statmake

Apply user-defined `.stylespace` files to variable fonts to generate a `STAT` table.

## Installation

The easiest way is by installing it with `pip`. You need at least Python 3.6.

```
pip3 install statmake
```

## Usage

1. Write a Stylespace file that describes each stop of all axes available in the entire family. See [tests/data/Test.stylespace](tests/data/Test.stylespace) for an annotated example.
2. 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](tests/data/Test_Wght_Upright.designspace) and [tests/data/Test_Wght_Italic.designspace](tests/data/Test_Wght_Italic.designspace) for an example.
3. Generate the variable font(s) as normal
4. 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.

