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
This commit is contained in:
Kristoffer Søholm 2025-04-26 23:36:24 +02:00 committed by GitHub
parent 9167f02bdf
commit 78d9f05d31
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -33,7 +33,7 @@ bevy_platform = { path = "../bevy_platform", version = "0.16.0-dev", default-fea
] } ] }
# other # 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 } thiserror = { version = "2", default-features = false }
serde = { version = "1", features = ["derive"] } serde = { version = "1", features = ["derive"] }
smallvec = "1.13" smallvec = "1.13"

View File

@ -188,7 +188,7 @@ impl TextPipeline {
buffer.set_rich_text( buffer.set_rich_text(
font_system, font_system,
spans_iter, spans_iter,
Attrs::new(), &Attrs::new(),
Shaping::Advanced, Shaping::Advanced,
Some(justify.into()), Some(justify.into()),
); );