From b85f12bdceaeaf577abfb4e0704af2df8c95f4e4 Mon Sep 17 00:00:00 2001 From: Nekosha <79341606+Nekosha@users.noreply.github.com> Date: Mon, 19 Feb 2024 08:42:30 +0700 Subject: [PATCH] generate: bump ascent height for very taaaaall Vietnamese glyphs The last size bump did not take into account capital letters. --- src/monocraft.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/monocraft.py b/src/monocraft.py index b7925ab..e38711f 100644 --- a/src/monocraft.py +++ b/src/monocraft.py @@ -22,7 +22,7 @@ from polygonizer import PixelImage, generatePolygons from generate_continuous_ligatures import generate_continuous_ligatures -PIXEL_SIZE = 120 +PIXEL_SIZE = 80 characters = json.load(open("./characters.json")) diacritics = json.load(open("./diacritics.json")) @@ -41,9 +41,9 @@ def generateFont(): monocraft.encoding = "UnicodeFull" monocraft.version = "3.0" monocraft.weight = "Regular" - monocraft.ascent = PIXEL_SIZE * 9 + monocraft.ascent = PIXEL_SIZE * 12 monocraft.descent = PIXEL_SIZE - monocraft.em = PIXEL_SIZE * 10 + monocraft.em = PIXEL_SIZE * 13 monocraft.upos = -PIXEL_SIZE # Underline position monocraft.addLookup("ligatures", "gsub_ligature", (), (("liga",(("dflt",("dflt")),("latn",("dflt")))),)) monocraft.addLookupSubtable("ligatures", "ligatures-subtable")