wrap flag
This commit is contained in:
parent
20eb1af118
commit
5130651f15
1 changed files with 1 additions and 1 deletions
|
@ -182,7 +182,7 @@ proc typeset*(
|
|||
prevCanWrap = i
|
||||
|
||||
let advance = advance(font, result.runes, i, kerning)
|
||||
if rune != SP and bounds.x > 0 and at.x + advance > bounds.x:
|
||||
if wrap and rune != SP and bounds.x > 0 and at.x + advance > bounds.x:
|
||||
# Wrap to new line
|
||||
at.x = 0
|
||||
at.y += lineHeight
|
||||
|
|
Loading…
Reference in a new issue