diff --git a/Myna.otf b/Myna.otf index 0ff4b68..29fc9bf 100644 Binary files a/Myna.otf and b/Myna.otf differ diff --git a/vert_compact.py b/vert_compact.py new file mode 100644 index 0000000..7a59a53 --- /dev/null +++ b/vert_compact.py @@ -0,0 +1,27 @@ +import fontforge + +font = fontforge.open("./Myna.sfd") + +ascent = font.ascent +descent = font.descent + +RATIO = 0.9 + +# general +font.ascent = int(font.ascent * RATIO) +font.descent = int(font.descent * RATIO) + +# hhea +font.hhea_ascent = int(font.hhea_ascent * RATIO) +font.hhea_descent = int(font.hhea_descent * RATIO) + +# OS/2 typo +font.os2_typoascent = font.hhea_ascent +font.os2_typodescent = font.hhea_descent + +# OS/2 win +font.os2_winascent = ascent # can increase or decrease this if clipped +font.os2_windescent = descent + +font.save("Myna.sfd") +font.close()