From a456d1c17bbcf33afcca41d9e5e299f9f1193819 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9ctor=20Ram=C3=B3n=20Jim=C3=A9nez?= Date: Wed, 9 Apr 2025 18:31:38 +0200 Subject: [PATCH] Update `cosmic-text` to `0.14` --- Cargo.toml | 2 +- examples/hello-world.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index b9f2951..ba8558c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,7 +9,7 @@ license = "MIT OR Apache-2.0 OR Zlib" [dependencies] wgpu = { version = "24", default-features = false, features = ["wgsl"] } etagere = "0.2.10" -cosmic-text = "0.13" +cosmic-text = "0.14" lru = { version = "0.12.1", default-features = false } rustc-hash = "2.0" diff --git a/examples/hello-world.rs b/examples/hello-world.rs index 1a13dd1..51671cc 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); text_buffer.shape_until_scroll(&mut font_system, false); Self {