diff options
| author | hachem <im@hachem.wtf> | 2026-10-07 21:43:38 +0200 |
|---|---|---|
| committer | hachem <im@hachem.wtf> | 2026-10-07 21:43:38 +0200 |
| commit | e55291a32a8b3f7b5c105cd79e86f3c19f19b3d4 (patch) | |
| tree | 0a52300c63a011683ceba1642e6f7c24e4d367ef /tools/subset-ttf.sh | |
| parent | 5d4a723a5f157c0ed38a348099a600d1d21c3c2b (diff) | |
feat: tty and ttf, you'd think somethn starting with tt would be fun to do...
Diffstat (limited to 'tools/subset-ttf.sh')
| -rwxr-xr-x | tools/subset-ttf.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tools/subset-ttf.sh b/tools/subset-ttf.sh new file mode 100755 index 0000000..70cffa2 --- /dev/null +++ b/tools/subset-ttf.sh @@ -0,0 +1,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" |
