Only do glyph wrapping if wrap_simple is enabled

This commit is contained in:
Jeremy Soller 2022-12-13 09:23:35 -07:00
parent 6660a1d95b
commit f5968c4c37
No known key found for this signature in database
GPG key ID: 87F211AF2BE4C2FE

View file

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