Require default Attrs to be specified in set_rich_text
This commit is contained in:
parent
c1e40363ab
commit
ad10e7373b
2 changed files with 11 additions and 7 deletions
|
|
@ -119,7 +119,7 @@ fn main() {
|
|||
|
||||
editor
|
||||
.buffer_mut()
|
||||
.set_rich_text(spans.iter().copied(), Shaping::Advanced);
|
||||
.set_rich_text(spans.iter().copied(), attrs, Shaping::Advanced);
|
||||
|
||||
let mut swash_cache = SwashCache::new();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue