From c16b6eb9575684c78bda0a0abd1fd9bb1fd0fe30 Mon Sep 17 00:00:00 2001 From: Xavier Lambein Date: Tue, 26 Mar 2024 01:26:37 +0100 Subject: [PATCH] Bump cosmic text to 0.11 (#89) Co-authored-by: Xavier Lambein --- Cargo.toml | 2 +- examples/hello-world.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 4bea6a8..e79ac24 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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] diff --git a/examples/hello-world.rs b/examples/hello-world.rs index daafbb3..8924702 100644 --- a/examples/hello-world.rs +++ b/examples/hello-world.rs @@ -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| {