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()), );