-
Notifications
You must be signed in to change notification settings - Fork 167
How to use Font Bakery
Font Bakery is a command-line tool for checking the technical quality of font files.
Adobe Fonts font-processing pipeline uses Font Bakery to validate all the fonts submitted by foundry partners.
Font Bakery includes a profile named check-adobefonts
which will execute only the checks that are deemed important to the Adobe Fonts team.
Python version 3.7 (or greater) is required for running Font Bakery. Please refer to the instructions provided at www.python.org for downloading and installing Python on your platform.
Command to install a stable version of Font Bakery:
python -m pip install --upgrade fontbakery'[freetype]'
Command to install a beta version of Font Bakery:
python -m pip install --upgrade --pre fontbakery'[freetype]'
Running Font Bakery requires specifying a profile. Adobe Fonts profile is named check-adobefonts
.
-
on one font:
fontbakery check-adobefonts MyFont-Regular.ttf
-
on one font in verbose mode:
fontbakery check-adobefonts --verbose MyFont-Regular.ttf
-
on one font and generate a report in HTML format:
fontbakery check-adobefonts --html report.html MyFont-Regular.ttf
-
on one font, but only show the checks that FAIL:
fontbakery check-adobefonts --loglevel FAIL MyFont-Regular.ttf
-
on multiple fonts:
fontbakery check-adobefonts MyFont-Regular.ttf MyFont-Bold.ttf MyFont-Italic.ttf MyFont-BoldItalic.ttf
-
on multiple fonts, using a wildcard:
fontbakery check-adobefonts MyFont-*.ttf
fontbakery check-adobefonts --list-checks MyFont-Regular.ttf
fontbakery check-adobefonts -x com.google.fonts/check/font_version -x com.adobe.fonts/check/sfnt_version MyFont-Regular.otf
-
or simply,
fontbakery check-adobefonts -x font_version -x sfnt_version MyFont-Regular.otf
fontbakery check-adobefonts -c com.google.fonts/check/font_version -c com.adobe.fonts/check/sfnt_version MyFont-Regular.otf
-
or simply,
fontbakery check-adobefonts -c font_version -c sfnt_version MyFont-Regular.otf
fontbakery check-adobefonts --help
-
INFO
The check's output is merely informational.
-
PASS
The check succeeded. Congratulations! If your font gets enough of these, you might even get a treat. (Seriously! 😀)
-
SKIP
The check was skipped because it is not relevant for the font being checked. For example, variable font checks are skipped when the font is static.
-
WARN
A font issue that you may consider addressing. For more details, read the check's output.
-
FAIL
A font issue that must be fixed. Adobe Fonts font-processing pipeline will reject the font.
-
ERROR
The check failed because of a bug in Font Bakery's own code. Please report it at https://github.com/googlefonts/fontbakery/issues