diff options
Diffstat (limited to 'patch')
| -rwxr-xr-x | patch | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -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') + |