Fix text wrapping for rich_text

This commit is contained in:
Héctor Ramón Jiménez 2025-01-10 23:36:45 +01:00
parent 664caf7087
commit bffe572a04
No known key found for this signature in database
GPG key ID: 7CC46565708259A7

View file

@ -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)| {