first draft of typo demo

This commit is contained in:
2026-05-18 11:22:46 +02:00
commit 5470d56015
657 changed files with 140834 additions and 0 deletions
+34
View File
@@ -0,0 +1,34 @@
#!/bin/sh
set -e
echo "Build with gftools builder"
gftools builder config.yaml
echo "Slice into Roman and Italic VF (as Google Fonts currently doesn't support slnt or ital axes)"
fonttools varLib.instancer "../fonts/variable/Anybody[ital,wdth,wght].ttf" ital=0 --update-name-table -o "../fonts/variable/Anybody[wdth,wght].ttf"
fonttools varLib.instancer "../fonts/variable/Anybody[ital,wdth,wght].ttf" ital=1 --update-name-table -o "../fonts/variable/Anybody-Italic[wdth,wght].ttf"
echo "Fix name ID 25"
gftools gen-stat "../fonts/variable/Anybody-Italic[wdth,wght].ttf" --axis-order 'wdth' 'wght' 'ital' --inplace
echo "Fix style linking"
python3 fix.py
echo "fix statics and create webfonts"
ttf=$(ls ../fonts/ttf/*.ttf)
for font in $ttf
do
ttfautohint $font $font.fix
mv $font.fix $font
gftools fix-hinting $font
mv $font.fix $font
fonttools ttLib.woff2 compress $font
done
rm -rf ../fonts/webfonts
mkdir ../fonts/webfonts
mv ../fonts/ttf/*.woff2 ../fonts/webfonts/
echo "Complete"