This library provides a wrapper for several other Python libraries which together compile fonts from various sources (.glyphs, .ufo) into binaries (.otf, .ttf).
Create new virtual environment (optional, but recommended):
python -m pip install --user virtualenv # install virtualenv if not available
python -m virtualenv env # create environment named 'env' in current folder
source env/bin/activate # activate the environment (run `deactivate` to exit)
Install fontmake's dependencies:
pip install -r requirements.txt
Install fontmake:
pip install -e . # `-e` is for "editable" mode, only required for developers
After installation, fontmake can be run end-to-end as a module:
# outputs master binaries
python -m fontmake MyFont.glyphs
Use -h
to see a list of runtime options. -i
will output instance binaries,
-c
will ensure the output is interpolation compatible (for both masters and
instances).
You can also use fontmake to run intermediate steps in the build process, via
methods of the fontmake.font_project.FontProject
class.