aboutsummaryrefslogtreecommitdiff
path: root/patch
diff options
context:
space:
mode:
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')
+