Bump cosmic text to 0.11 (#89)

Co-authored-by: Xavier Lambein <xavier@lambein.xyz>
This commit is contained in:
Xavier Lambein 2024-03-26 01:26:37 +01:00 committed by GitHub
parent f95e66f612
commit c16b6eb957
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -10,7 +10,7 @@ license = "MIT OR Apache-2.0 OR Zlib"
[dependencies]
wgpu = { version = "0.19", default-features = false, features = ["wgsl"] }
etagere = "0.2.10"
cosmic-text = "0.10"
cosmic-text = "0.11"
lru = "0.12.1"
[dev-dependencies]

View file

@ -78,7 +78,7 @@ async fn run() {
buffer.set_size(&mut font_system, physical_width, physical_height);
buffer.set_text(&mut font_system, "Hello world! 👋\nThis is rendered with 🦅 glyphon 🦁\nThe text below should be partially clipped.\na b c d e f g h i j k l m n o p q r s t u v w x y z", Attrs::new().family(Family::SansSerif), Shaping::Advanced);
buffer.shape_until_scroll(&mut font_system);
buffer.shape_until_scroll(&mut font_system, false);
event_loop
.run(move |event, target| {