Skip to content

Commit

Permalink
generate: bump ascent height for very taaaaall Vietnamese glyphs
Browse files Browse the repository at this point in the history
The last size bump did not take into account capital letters.
  • Loading branch information
Nekosha committed Feb 19, 2024
1 parent 40c1f92 commit b85f12b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/monocraft.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"))
Expand All @@ -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")
Expand Down

0 comments on commit b85f12b

Please sign in to comment.