From 5130651f15184eb2c6199ca1a6bd2b44af9f3edf Mon Sep 17 00:00:00 2001 From: Ryan Oldenburg Date: Thu, 6 May 2021 14:01:20 -0500 Subject: [PATCH] wrap flag --- src/pixie/fonts.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pixie/fonts.nim b/src/pixie/fonts.nim index b53d63a..da49b4c 100644 --- a/src/pixie/fonts.nim +++ b/src/pixie/fonts.nim @@ -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