googlefonts.lexend/sources/build.sh
2021-04-27 18:29:28 +02:00

36 lines
642 B
Bash

#!/bin/sh
set -e
#source ../env/bin/activate
ttDir=../fonts/ttf
echo ".
BUILD FONTS
."
gftools builder config.yaml
ttfs=$(ls $ttDir/*-Regular.ttf)
for font in $ttfs
do
gftools fix-weightclass $font
[ -f $font.fix ] && mv $font.fix $font
done
echo ".
SUBSETTING STATICS
."
ttfs=$(ls $ttDir/*.ttf)
for font in $ttfs
do
pyftsubset $font --unicodes="0-3c0,1e08-fb02" --layout-scripts=latn,grek --layout-features='*' --output-file=$font.subset --name-IDs='*' --name-legacy --glyph-names --symbol-cmap --legacy-cmap --notdef-glyph --notdef-outline --recommended-glyphs --drop-tables=
mv $font.subset $font
done
echo ".
COMPLETE!
."