-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsubset-war-cnc.bash
More file actions
executable file
·35 lines (33 loc) · 1.02 KB
/
subset-war-cnc.bash
File metadata and controls
executable file
·35 lines (33 loc) · 1.02 KB
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
#!/bin/bash
mkdir -p subset/
for file in $(ls *.ttf *.otf 2>/dev/null)
do
pyftsubset "$file" \
--unicodes-file=charset/feature.uni \
--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/hangul.uni \
--unicodes-file=charset/gbk-non-uro.uni --unicodes-file=charset/cn-general-8105.uni \
--unicodes-file=charset/adobe-cns1-0-non-uro.uni --unicodes-file=charset/adobe-japan1-1-non-uro.uni \
--output-file=subset/"$file" \
--notdef-glyph --notdef-outline \
--no-recommended-glyphs \
--layout-features='*' \
--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