Merge pull request #2723 from Konsl/master
Apply `Wrapping` to `Paragraph`s
This commit is contained in:
commit
f4eebf0f61
1 changed files with 4 additions and 0 deletions
|
|
@ -80,6 +80,8 @@ impl core::text::Paragraph for Paragraph {
|
||||||
Some(text.bounds.height),
|
Some(text.bounds.height),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
buffer.set_wrap(font_system.raw(), text::to_wrap(text.wrapping));
|
||||||
|
|
||||||
buffer.set_text(
|
buffer.set_text(
|
||||||
font_system.raw(),
|
font_system.raw(),
|
||||||
text.content,
|
text.content,
|
||||||
|
|
@ -122,6 +124,8 @@ impl core::text::Paragraph for Paragraph {
|
||||||
Some(text.bounds.height),
|
Some(text.bounds.height),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
buffer.set_wrap(font_system.raw(), text::to_wrap(text.wrapping));
|
||||||
|
|
||||||
buffer.set_rich_text(
|
buffer.set_rich_text(
|
||||||
font_system.raw(),
|
font_system.raw(),
|
||||||
text.content.iter().enumerate().map(|(i, span)| {
|
text.content.iter().enumerate().map(|(i, span)| {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue