From 99b46959369f38a06c11353bf1be81d383b289fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9ctor=20Ram=C3=B3n=20Jim=C3=A9nez?= Date: Fri, 31 Oct 2025 14:33:21 +0100 Subject: [PATCH] Update `cosmic-text` to `0.15` --- Cargo.toml | 2 +- benches/prepare.rs | 2 +- examples/hello-world.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 4b44e24..1554e42 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,7 +9,7 @@ license = "MIT OR Apache-2.0 OR Zlib" [dependencies] wgpu = { version = "27", default-features = false, features = ["wgsl"] } etagere = "0.2" -cosmic-text = "0.14" +cosmic-text = "0.15" lru = { version = "0.16", default-features = false } rustc-hash = "2" diff --git a/benches/prepare.rs b/benches/prepare.rs index c810005..e6d800b 100644 --- a/benches/prepare.rs +++ b/benches/prepare.rs @@ -74,7 +74,7 @@ fn run_bench(ctx: &mut Criterion) { .map(|s| { let mut text_buffer = Buffer::new(&mut font_system, Metrics::relative(1.0, 10.0)); text_buffer.set_size(&mut font_system, Some(20.0), None); - text_buffer.set_text(&mut font_system, s, &attrs, shaping); + text_buffer.set_text(&mut font_system, s, &attrs, shaping, None); text_buffer.shape_until_scroll(&mut font_system, false); text_buffer }) diff --git a/examples/hello-world.rs b/examples/hello-world.rs index 2338f46..9197b0d 100644 --- a/examples/hello-world.rs +++ b/examples/hello-world.rs @@ -87,7 +87,7 @@ impl WindowState { Some(physical_width), Some(physical_height), ); - text_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); + text_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, None); text_buffer.shape_until_scroll(&mut font_system, false); Self {