mirror of
https://github.com/googlefonts/lexend.git
synced 2026-09-10 07:26:23 -04:00
36 lines
642 B
Bash
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!
|
|
."
|