blob: 70cffa2e78698e9d84d970cfc936596c55894f75 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#!/bin/sh
# trim the ttf into a subset (U+0020..007E), its just to embed fonts that are actually
# rendered, since we have NERD fonts and shit, they can be quite large
set -e
IN="$1"
OUT="$2"
python3 -m fontTools.subset "$IN" \
--unicodes=U+0020-007E \
--no-hinting --glyph-names \
--output-file="$OUT"
echo "wrote $OUT"
|