wrap flag

This commit is contained in:
Ryan Oldenburg 2021-05-06 14:01:20 -05:00
parent 20eb1af118
commit 5130651f15

View file

@ -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