Skip to content

Commit

Permalink
Bump cosmic text to 0.11 (#89)
Browse files Browse the repository at this point in the history
Co-authored-by: Xavier Lambein <xavier@lambein.xyz>
  • Loading branch information
xlambein and Xavier Lambein authored Mar 26, 2024
1 parent f95e66f commit c16b6eb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ license = "MIT OR Apache-2.0 OR Zlib"
[dependencies]
wgpu = { version = "0.19", default-features = false, features = ["wgsl"] }
etagere = "0.2.10"
cosmic-text = "0.10"
cosmic-text = "0.11"
lru = "0.12.1"

[dev-dependencies]
Expand Down
2 changes: 1 addition & 1 deletion examples/hello-world.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ async fn run() {

buffer.set_size(&mut font_system, physical_width, physical_height);
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);
buffer.shape_until_scroll(&mut font_system);
buffer.shape_until_scroll(&mut font_system, false);

event_loop
.run(move |event, target| {
Expand Down

0 comments on commit c16b6eb

Please sign in to comment.