From 664caf7087c779ad6ec652ce4ea8df4168e3d610 Mon Sep 17 00:00:00 2001 From: Konsl <82901383+Konsl@users.noreply.github.com> Date: Tue, 7 Jan 2025 00:30:14 +0100 Subject: [PATCH] Apply wrapping to paragraphs --- graphics/src/text/paragraph.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/graphics/src/text/paragraph.rs b/graphics/src/text/paragraph.rs index 07ddbb821a..d1e23c002d 100644 --- a/graphics/src/text/paragraph.rs +++ b/graphics/src/text/paragraph.rs @@ -80,6 +80,8 @@ impl core::text::Paragraph for Paragraph { Some(text.bounds.height), ); + buffer.set_wrap(font_system.raw(), text::to_wrap(text.wrapping)); + buffer.set_text( font_system.raw(), text.content,