From 78d9f05d3166f60a8cd84bcf041c0e4c4924ed62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristoffer=20S=C3=B8holm?= Date: Sat, 26 Apr 2025 23:36:24 +0200 Subject: [PATCH] Update cosmic-text to 0.14 (#18651) # Objective New cosmic-text version is out, we should use it. ## Solution Bump the version. ## Testing Code compiles, text example works --- crates/bevy_text/Cargo.toml | 2 +- crates/bevy_text/src/pipeline.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/bevy_text/Cargo.toml b/crates/bevy_text/Cargo.toml index 2a1a40a74f..5134ecda84 100644 --- a/crates/bevy_text/Cargo.toml +++ b/crates/bevy_text/Cargo.toml @@ -33,7 +33,7 @@ bevy_platform = { path = "../bevy_platform", version = "0.16.0-dev", default-fea ] } # other -cosmic-text = { version = "0.13", features = ["shape-run-cache"] } +cosmic-text = { version = "0.14", features = ["shape-run-cache"] } thiserror = { version = "2", default-features = false } serde = { version = "1", features = ["derive"] } smallvec = "1.13" diff --git a/crates/bevy_text/src/pipeline.rs b/crates/bevy_text/src/pipeline.rs index c1f9ca7fe4..f1bdeded91 100644 --- a/crates/bevy_text/src/pipeline.rs +++ b/crates/bevy_text/src/pipeline.rs @@ -188,7 +188,7 @@ impl TextPipeline { buffer.set_rich_text( font_system, spans_iter, - Attrs::new(), + &Attrs::new(), Shaping::Advanced, Some(justify.into()), );