Merge pull request #44 from RosaWagner/master

Subsetted fonts
This commit is contained in:
ThomasJockin 2021-04-27 11:31:53 -04:00 committed by GitHub
commit 30bfc4117e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
16 changed files with 20 additions and 0 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

20
sources/subset.sh Normal file
View 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!
."