From e55291a32a8b3f7b5c105cd79e86f3c19f19b3d4 Mon Sep 17 00:00:00 2001 From: hachem Date: Wed, 7 Oct 2026 21:43:38 +0200 Subject: feat: tty and ttf, you'd think somethn starting with tt would be fun to do... --- tools/subset-ttf.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 tools/subset-ttf.sh (limited to 'tools/subset-ttf.sh') 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" -- cgit v1.3