Fix examples

This commit is contained in:
Héctor Ramón Jiménez 2023-04-21 20:35:59 +02:00
parent a5c548b12f
commit 0dce8b75d1
No known key found for this signature in database
GPG key ID: 140CC052C94F138E
2 changed files with 4 additions and 4 deletions

View file

@ -2,7 +2,7 @@
use cosmic_text::{
Action, Attrs, AttrsList, Buffer, BufferLine, Color, Edit, Editor, Family, FontSystem, Metrics,
Style, SwashCache, Weight,
Shaping, Style, SwashCache, Weight,
};
use orbclient::{EventOption, Renderer, Window, WindowFlag};
use std::{
@ -143,7 +143,7 @@ fn main() {
editor
.buffer_mut()
.lines
.push(BufferLine::new(line_text, attrs_list));
.push(BufferLine::new(line_text, attrs_list, Shaping::Advanced));
}
let mut swash_cache = SwashCache::new();