From d9ae6d418a41791642e5fb6e5be186e127ea2326 Mon Sep 17 00:00:00 2001 From: irori Date: Sun, 23 Sep 2018 16:07:53 +0900 Subject: [PATCH] Fix vertical metrics for baikaku fonts --- converter/convert.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/converter/convert.py b/converter/convert.py index 17a3162..2380205 100644 --- a/converter/convert.py +++ b/converter/convert.py @@ -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: @@ -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