improvement?
This commit is contained in:
parent
eafd18fa7e
commit
93a854c7b2
3 changed files with 1 additions and 1 deletions
|
@ -139,7 +139,7 @@ proc typeset*(
|
||||||
var
|
var
|
||||||
at: Vec2
|
at: Vec2
|
||||||
prevCanWrap: int
|
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
|
at.y += (lineheight - font.defaultLineHeight) / 2
|
||||||
for i, rune in result.runes:
|
for i, rune in result.runes:
|
||||||
if rune.canWrap():
|
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