-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsubset-slugo-32767.bash
executable file
·36 lines (34 loc) · 1.15 KB
/
subset-slugo-32767.bash
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/bin/bash
mkdir -p subset/
for file in $(ls *.ttf *.otf)
do
pyftsubset "$file" \
--unicodes-file=charset/adobe-latin-3.uni --unicodes-file=charset/adobe-cyrillic-1.uni --unicodes-file=charset/adobe-greek-1.uni \
--unicodes-file=charset/uro.uni \
--unicodes-file=charset/adobe-gb1-2.uni --unicodes-file=charset/adobe-cns1-0.uni --unicodes-file=charset/adobe-japan1-2.uni \
--unicodes-file=charset/adobe-kr-1.uni --unicodes-file=charset/adobe-korea1-0.uni \
--unicodes-file=charset/cn-general-8105.uni --text-file=charset/jp-freq-2136.txt --text-file=charset/jp-name-863.txt \
--unicodes=02b9,02ba \
--output-file=subset/"$file" \
--notdef-glyph --notdef-outline \
--no-recommended-glyphs \
--layout-features=ccmp,kern,liga,lnum,mark,mkmk,onum,palt,pnum,smcp,tnum \
--layout-scripts='*' \
--no-hinting \
--desubroutinize \
--no-legacy-kern \
--no-name-legacy \
--name-languages=0x0409 \
--obfuscate-names \
--no-glyph-names \
--no-legacy-cmap \
--no-symbol-cmap \
--recalc-bounds \
--no-recalc-timestamp \
--no-canonical-order \
--prune-unicode-ranges \
--recalc-average-width \
--recalc-max-context \
--timing &
done
wait