Skip to content

Commit

Permalink
Fix vertical metrics for baikaku fonts
Browse files Browse the repository at this point in the history
  • Loading branch information
irori committed Sep 23, 2018
1 parent 3e9ab24 commit d9ae6d4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions converter/convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,8 @@ def h2x(ufo):
japanese_name_record(16, u'ワープロ明朝'),
]
ufo.info.openTypeNameRecords.append(japanese_name_record(17, u'横倍角'))
ufo.info.openTypeVheaVertTypoAscender *= 2
ufo.info.openTypeVheaVertTypoDescender *= 2
for glyph in ufo:
glyph.width *= 2
for contour in glyph:
Expand All @@ -119,6 +121,7 @@ def v2x(ufo):
ufo.info.xHeight *= 2

for glyph in ufo:
glyph.height *= 2
for contour in glyph:
for point in contour:
point.y *= 2
Expand Down

0 comments on commit d9ae6d4

Please sign in to comment.