mirror of
https://github.com/googlefonts/lexend.git
synced 2026-09-10 07:26:23 -04:00
added bash script to subset ttf statics
This commit is contained in:
parent
002f11842a
commit
15dfa5887c
20
sources/subset.sh
Normal file
20
sources/subset.sh
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
#!/bin/sh
|
||||
set -e
|
||||
#source ../env/bin/activate
|
||||
|
||||
ttDir=../fonts/ttf
|
||||
|
||||
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!
|
||||
."
|
||||
Loading…
Reference in a new issue