Update cosmic-text to 0.14

This commit is contained in:
Héctor Ramón Jiménez 2025-04-09 18:31:38 +02:00
parent be2defe4a1
commit a456d1c17b
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
2 changed files with 2 additions and 2 deletions

View file

@ -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"

View file

@ -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 {