aboutsummaryrefslogtreecommitdiff
path: root/patch
blob: 3529458d39af5e314d6dcf1378d4928f12d31347 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/python
from fontTools.ttLib import TTFont

a = TTFont('misc/azuki.ttf')
b = TTFont('exported/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')