improvement?

This commit is contained in:
Ryan Oldenburg 2021-05-03 15:59:47 -05:00
parent eafd18fa7e
commit 93a854c7b2
3 changed files with 1 additions and 1 deletions

View file

@ -139,7 +139,7 @@ proc typeset*(
var
at: Vec2
prevCanWrap: int
at.y = round(font.typeface.ascent * font.scale)
at.y = round((font.typeface.ascent + font.typeface.lineGap / 2) * font.scale)
at.y += (lineheight - font.defaultLineHeight) / 2
for i, rune in result.runes:
if rune.canWrap():

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3 KiB

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.2 KiB

After

Width:  |  Height:  |  Size: 3.2 KiB