From 41e246ec84a5f41aee78701770ed08b44138d22e Mon Sep 17 00:00:00 2001 From: Nico Burns Date: Tue, 29 Sep 2026 15:23:17 +0000 Subject: [PATCH] Upgrade skia-safe to 0.153.3 --- Cargo.lock | 8 ++++---- crates/anyrender_skia/Cargo.toml | 4 ++-- crates/anyrender_skia/src/scene.rs | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 30e2f2b..0b99f24 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3346,9 +3346,9 @@ dependencies = [ [[package]] name = "skia-bindings" -version = "0.99.0" +version = "0.153.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3e2d1c3ebd697c0cbded0145e9204a38fa6b268446051b7196d0a096414ea7f3" +checksum = "eb325787c91b3f6c34a7c6f2b8a2297b20292d733ca53a08c233e5028aec49af" dependencies = [ "bindgen", "cc", @@ -3363,9 +3363,9 @@ dependencies = [ [[package]] name = "skia-safe" -version = "0.99.0" +version = "0.153.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9f512ac418a64194842dd05566320805dad1c957c521039db2486fd6368865bc" +checksum = "c61cb643dac43067f3eb76c866635a74377ac0abca0ff2590674e1e295514c3d" dependencies = [ "bitflags 2.13.1", "skia-bindings", diff --git a/crates/anyrender_skia/Cargo.toml b/crates/anyrender_skia/Cargo.toml index 5896c57..220671e 100644 --- a/crates/anyrender_skia/Cargo.toml +++ b/crates/anyrender_skia/Cargo.toml @@ -22,7 +22,7 @@ peniko = { workspace = true } raw-window-handle = { workspace = true } softbuffer_window_renderer = { workspace = true, optional = true } pixels_window_renderer = { workspace = true, optional = true } -skia-safe = { version = "0.99.0", features = ["gl", "pdf", "textlayout"]} +skia-safe = { version = "0.153.3", features = ["gl", "pdf", "textlayout"]} oaty = "0.2" hashbrown = "0.17.0" @@ -43,4 +43,4 @@ objc2 = { version = "0.6.3", default-features = false } objc2-core-foundation = { version = "0.3.2", default-features = false } objc2-metal = { version = "0.3.2", default-features = false, features = ["MTLCommandBuffer", "MTLCommandQueue", "MTLDrawable", "MTLPixelFormat"] } objc2-quartz-core = { version = "0.3.2", default-features = false, features = ["objc2-core-foundation", "objc2-metal", "CAMetalLayer"] } -skia-safe = { version = "0.99.0", features = ["metal"] } +skia-safe = { version = "0.153.3", features = ["metal"] } diff --git a/crates/anyrender_skia/src/scene.rs b/crates/anyrender_skia/src/scene.rs index 375c0dc..c25c7b1 100644 --- a/crates/anyrender_skia/src/scene.rs +++ b/crates/anyrender_skia/src/scene.rs @@ -399,7 +399,7 @@ impl SkiaScenePainter<'_> { let Some(typeface) = self .cache .font_mgr - .new_from_data(font.data.data(), font.index as usize) + .new_from_bytes(font.data.data(), font.index) else { let tf = Typeface::make_deserialize(font.data.data(), None); eprintln!(