improvement?
This commit is contained in:
parent
eafd18fa7e
commit
93a854c7b2
|
@ -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 |
Loading…
Reference in a new issue