From f5968c4c37f01364c3c6fdc101739b31db11cdb2 Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Tue, 13 Dec 2022 09:23:35 -0700 Subject: [PATCH] Only do glyph wrapping if wrap_simple is enabled --- src/shape.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shape.rs b/src/shape.rs index 0ad1bee..cbe05a7 100644 --- a/src/shape.rs +++ b/src/shape.rs @@ -620,7 +620,7 @@ impl ShapeLine { x + x_advance > end_x }; - if glyph_wrap && ! glyphs.is_empty() { + if glyph_wrap && wrap_simple && ! glyphs.is_empty() { let mut glyphs_swap = Vec::new(); mem::swap(&mut glyphs, &mut glyphs_swap); layout_lines.push(