diff options
| author | 2025-01-10 23:36:45 +0100 | |
|---|---|---|
| committer | 2025-01-10 23:36:45 +0100 | |
| commit | bffe572a045af6f06b307dbab300233a476c4d32 (patch) | |
| tree | eb5471d7855e4b10605bc4448fcc9fcac300cfd4 /graphics | |
| parent | 664caf7087c779ad6ec652ce4ea8df4168e3d610 (diff) | |
| download | iced-bffe572a045af6f06b307dbab300233a476c4d32.tar.gz iced-bffe572a045af6f06b307dbab300233a476c4d32.tar.bz2 iced-bffe572a045af6f06b307dbab300233a476c4d32.zip | |
Fix text wrapping for `rich_text`
Diffstat (limited to '')
| -rw-r--r-- | graphics/src/text/paragraph.rs | 2 | 
1 files changed, 2 insertions, 0 deletions
| diff --git a/graphics/src/text/paragraph.rs b/graphics/src/text/paragraph.rs index d1e23c00..48c8e9e6 100644 --- a/graphics/src/text/paragraph.rs +++ b/graphics/src/text/paragraph.rs @@ -124,6 +124,8 @@ impl core::text::Paragraph for Paragraph {              Some(text.bounds.height),          ); +        buffer.set_wrap(font_system.raw(), text::to_wrap(text.wrapping)); +          buffer.set_rich_text(              font_system.raw(),              text.content.iter().enumerate().map(|(i, span)| { | 
