Fix text wrapping for rich_text
This commit is contained in:
parent
664caf7087
commit
bffe572a04
1 changed files with 2 additions and 0 deletions
|
|
@ -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)| {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue