mirror of
https://github.com/ThomasJockin/readexpro.git
synced 2024-09-21 07:39:06 +03:00
36 lines
660 B
Bash
36 lines
660 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!
|
|
."
|