aboutsummaryrefslogtreecommitdiff
path: root/patch
diff options
context:
space:
mode:
authorczjstmax <jstmaxlol@disroot.org>2026-05-09 18:24:16 +0200
committerczjstmax <jstmaxlol@disroot.org>2026-05-09 18:24:16 +0200
commit12e49aef09b851f2154bfa4d233b1795e17a6c44 (patch)
tree6e48cd5b5add74a8f5ff86ab6f981adeff62197c /patch
initial version
Signed-off-by: czjstmax <jstmaxlol@disroot.org>
Diffstat (limited to 'patch')
-rwxr-xr-xpatch15
1 files changed, 15 insertions, 0 deletions
diff --git a/patch b/patch
new file mode 100755
index 0000000..048a74d
--- /dev/null
+++ b/patch
@@ -0,0 +1,15 @@
+#!/usr/bin/python
+from fontTools.ttLib import TTFont
+
+a = TTFont('misc/azuki.ttf')
+b = TTFont('patched/czuki.ttf')
+
+a_metrics = a['hmtx'].metrics
+b_metrics = b['hmtx'].metrics
+
+for glyph in b.getGlyphOrder():
+ if glyph in a_metrics:
+ b_metrics[glyph] = a_metrics[glyph]
+
+b.save('patched/czuki.ttf')
+