git.lucas.co / Myna
git clone https://git.lucas.co/Myna.git

commit48397900028ffc036b8c62c0fc62e3dd7010cd5f
parentf48cc5ec42
authorsayyadirfanali <[email protected]>
date2025-11-10 00:14
potential fix for #9

 Myna.otf        | Bin 186612 -> 186612 bytes
 vert_compact.py |  27 +++++++++++++++++++++++++++
 2 files changed, 27 insertions(+)

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()