Skip to content

Instantly share code, notes, and snippets.

@rsheeter
Created November 8, 2023 17:18
Show Gist options
  • Save rsheeter/ddbccc991297d507c1caa59edbb1ce8c to your computer and use it in GitHub Desktop.
Save rsheeter/ddbccc991297d507c1caa59edbb1ce8c to your computer and use it in GitHub Desktop.
How to ttx_diff
# starting from a directory with both fontc and oswald
git clone git@github.com:googlefonts/fontc.git
git clone git@github.com:googlefonts/OswaldFont.git
cd fontc
# establish a virtual environment
python3 -m venv venv
source venv/bin/activate
pip install -r resources/scripts/requirements.txt
# run ttx_diff on a minimal test file; at time of writing GDEF and GPOS differ
python resources/scripts/ttx_diff.py resources/testdata/glyphs3/Oswald-AE-comb.glyphs
# run ttx_diff on Oswald
python resources/scripts/ttx_diff.py ../OswaldFont/sources/Oswald.glyphs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment