Vendor i-slint-renderer-skia 1.16.1 with a second-chance typeface workaround: skia bug 310510989 makes new_from_data fail for TTC faces at index > 0 on macOS, and for AppleSDGothicNeo.ttc — which packs every weight at index > 0 — the upstream read/write-fonts rebuild is ALSO rejected by CoreText, so draw_glyph_run silently dropped every Korean glyph run at non-regular weights (Japanese survived because Hiragino ships one file per weight, always index 0). Resolve the same face through CoreText by family name (typographic name preferred, localized names resolve too) + OS/2 weight; the match points at the same installed file so parley's glyph ids stay valid, enforced by cmap spot checks that reject a mismatching face rather than draw wrong glyphs. Probe-verified on the Mac Mini: matched face returns identical glyph ids for U+C0AC across w500/600/700. cc
370 lines
7.8 KiB
TOML
370 lines
7.8 KiB
TOML
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
|
|
#
|
|
# When uploading crates to the registry Cargo will automatically
|
|
# "normalize" Cargo.toml files for maximal compatibility
|
|
# with all versions of Cargo and also rewrite `path` dependencies
|
|
# to registry (e.g., crates.io) dependencies.
|
|
#
|
|
# If you are reading this file be aware that the original Cargo.toml
|
|
# will likely look very different (and much more reasonable).
|
|
# See Cargo.toml.orig for the original contents.
|
|
|
|
[package]
|
|
edition = "2024"
|
|
rust-version = "1.88"
|
|
name = "i-slint-renderer-skia"
|
|
version = "1.16.1"
|
|
authors = ["Slint Developers <info@slint.dev>"]
|
|
build = "build.rs"
|
|
autolib = false
|
|
autobins = false
|
|
autoexamples = false
|
|
autotests = false
|
|
autobenches = false
|
|
description = "Skia based renderer for Slint"
|
|
homepage = "https://slint.dev"
|
|
readme = "README.md"
|
|
license = "GPL-3.0-only OR LicenseRef-Slint-Royalty-free-2.0 OR LicenseRef-Slint-Software-3.0"
|
|
repository = "https://github.com/slint-ui/slint"
|
|
|
|
[package.metadata.docs.rs]
|
|
rustdoc-args = ["--generate-link-to-definition"]
|
|
|
|
[features]
|
|
default = ["softbuffer"]
|
|
kms = ["softbuffer/kms"]
|
|
opengl = []
|
|
unstable-wgpu-27 = [
|
|
"i-slint-core/unstable-wgpu-27",
|
|
"wgpu-27",
|
|
]
|
|
unstable-wgpu-28 = [
|
|
"i-slint-core/unstable-wgpu-28",
|
|
"wgpu-28",
|
|
]
|
|
vulkan = [
|
|
"skia-safe/vulkan",
|
|
"dep:ash",
|
|
"vulkano",
|
|
]
|
|
wayland = [
|
|
"glutin/wayland",
|
|
"softbuffer/wayland",
|
|
"softbuffer/wayland-dlopen",
|
|
]
|
|
wgpu-27 = [
|
|
"i-slint-core/wgpu-27",
|
|
"dep:wgpu-27",
|
|
"dep:spin_on",
|
|
"dep:metal",
|
|
"dep:foreign-types",
|
|
"dep:ash",
|
|
"dep:windows_58",
|
|
"dep:windows-core",
|
|
"dep:windows-core_58",
|
|
]
|
|
wgpu-28 = [
|
|
"i-slint-core/wgpu-28",
|
|
"dep:wgpu-28",
|
|
"dep:spin_on",
|
|
"dep:metal",
|
|
"dep:foreign-types",
|
|
"dep:ash",
|
|
"dep:windows-core",
|
|
]
|
|
x11 = [
|
|
"glutin/x11",
|
|
"glutin/glx",
|
|
"softbuffer/x11",
|
|
"softbuffer/x11-dlopen",
|
|
]
|
|
|
|
[lib]
|
|
name = "i_slint_renderer_skia"
|
|
path = "lib.rs"
|
|
|
|
[dependencies.ash]
|
|
version = "^0.38.0"
|
|
optional = true
|
|
|
|
[dependencies.cfg-if]
|
|
version = "1"
|
|
|
|
[dependencies.clru]
|
|
version = "0.6.0"
|
|
|
|
[dependencies.const-field-offset]
|
|
version = "0.2"
|
|
|
|
[dependencies.derive_more]
|
|
version = "2.0.0"
|
|
features = [
|
|
"deref",
|
|
"deref_mut",
|
|
"into",
|
|
"from",
|
|
"add",
|
|
"add_assign",
|
|
"mul",
|
|
"not",
|
|
"display",
|
|
]
|
|
default-features = false
|
|
|
|
[dependencies.glow]
|
|
version = "0.17"
|
|
|
|
[dependencies.i-slint-common]
|
|
version = "=1.16.1"
|
|
features = ["default"]
|
|
default-features = false
|
|
|
|
[dependencies.i-slint-core]
|
|
version = "=1.16.1"
|
|
features = [
|
|
"default",
|
|
"box-shadow-cache",
|
|
"shared-parley",
|
|
]
|
|
default-features = false
|
|
|
|
[dependencies.i-slint-core-macros]
|
|
version = "=1.16.1"
|
|
features = ["default"]
|
|
default-features = false
|
|
|
|
[dependencies.lyon_path]
|
|
version = "1.0"
|
|
default-features = false
|
|
|
|
[dependencies.pin-weak]
|
|
version = "1"
|
|
|
|
[dependencies.raw-window-handle]
|
|
version = "0.6"
|
|
features = ["std"]
|
|
|
|
[dependencies.scoped-tls-hkt]
|
|
version = "0.1"
|
|
|
|
[dependencies.skia-safe]
|
|
version = "0.90"
|
|
features = ["gl"]
|
|
|
|
[dependencies.spin_on]
|
|
version = "0.1"
|
|
optional = true
|
|
|
|
[dependencies.unicode-segmentation]
|
|
version = "1.12.0"
|
|
|
|
[dependencies.vtable]
|
|
version = "0.4"
|
|
|
|
[dependencies.vulkano]
|
|
version = "0.35.0"
|
|
optional = true
|
|
default-features = false
|
|
|
|
[dependencies.wgpu-27]
|
|
version = "27"
|
|
optional = true
|
|
default-features = false
|
|
package = "wgpu"
|
|
|
|
[dependencies.wgpu-28]
|
|
version = "28"
|
|
optional = true
|
|
default-features = false
|
|
package = "wgpu"
|
|
|
|
[build-dependencies.cfg_aliases]
|
|
version = "0.2.0"
|
|
|
|
[target.aarch64-apple-ios-sim.dependencies.objc2]
|
|
version = "0.6.0"
|
|
features = ["disable-encoding-assertions"]
|
|
|
|
[target.'cfg(any(not(target_vendor = "apple"), target_os = "macos"))'.dependencies.glutin]
|
|
version = "0.32.0"
|
|
features = [
|
|
"egl",
|
|
"wgl",
|
|
]
|
|
default-features = false
|
|
|
|
[target.'cfg(any(target_os = "ios", target_os="macos", target_os="windows", target_os="android", target_os="linux"))'.dependencies.skia-safe]
|
|
version = "0.90"
|
|
features = ["textlayout"]
|
|
|
|
[target.'cfg(not(any(target_vendor = "apple", target_family = "windows")))'.dependencies.skia-safe]
|
|
version = "0.90"
|
|
features = [
|
|
"gl",
|
|
"vulkan",
|
|
]
|
|
|
|
[target.'cfg(not(any(target_vendor = "apple", target_family = "windows")))'.dependencies.wgpu-27]
|
|
version = "27"
|
|
features = ["vulkan"]
|
|
optional = true
|
|
default-features = false
|
|
package = "wgpu"
|
|
|
|
[target.'cfg(not(any(target_vendor = "apple", target_family = "windows")))'.dependencies.wgpu-28]
|
|
version = "28"
|
|
features = ["vulkan"]
|
|
optional = true
|
|
default-features = false
|
|
package = "wgpu"
|
|
|
|
[target.'cfg(not(target_os = "android"))'.dependencies.bytemuck]
|
|
version = "1.13.1"
|
|
|
|
[target.'cfg(not(target_os = "android"))'.dependencies.softbuffer]
|
|
version = "0.4.4"
|
|
optional = true
|
|
default-features = false
|
|
|
|
[target.'cfg(target_family = "windows")'.dependencies.skia-safe]
|
|
version = "0.90"
|
|
features = ["d3d"]
|
|
|
|
[target.'cfg(target_family = "windows")'.dependencies.wgpu-27]
|
|
version = "27"
|
|
features = ["dx12"]
|
|
optional = true
|
|
default-features = false
|
|
package = "wgpu"
|
|
|
|
[target.'cfg(target_family = "windows")'.dependencies.wgpu-28]
|
|
version = "28"
|
|
features = ["dx12"]
|
|
optional = true
|
|
default-features = false
|
|
package = "wgpu"
|
|
|
|
[target.'cfg(target_family = "windows")'.dependencies.windows]
|
|
version = "0.62"
|
|
features = [
|
|
"Win32",
|
|
"Win32_System_Com",
|
|
"Win32_Graphics",
|
|
"Win32_Graphics_Dxgi",
|
|
"Win32_Graphics_Direct3D12",
|
|
"Win32_Graphics_Direct3D",
|
|
"Win32_Foundation",
|
|
"Win32_Graphics_Dxgi_Common",
|
|
"Win32_System_Threading",
|
|
"Win32_Security",
|
|
]
|
|
|
|
[target.'cfg(target_family = "windows")'.dependencies.windows-core]
|
|
version = "0.62.0"
|
|
optional = true
|
|
|
|
[target.'cfg(target_family = "windows")'.dependencies.windows-core_58]
|
|
version = "0.58.0"
|
|
optional = true
|
|
package = "windows-core"
|
|
|
|
[target.'cfg(target_family = "windows")'.dependencies.windows_58]
|
|
version = "0.58.0"
|
|
features = [
|
|
"Win32",
|
|
"Win32_System_Com",
|
|
"Win32_Graphics",
|
|
"Win32_Graphics_Dxgi",
|
|
"Win32_Graphics_Direct3D12",
|
|
"Win32_Graphics_Direct3D",
|
|
"Win32_Foundation",
|
|
"Win32_Graphics_Dxgi_Common",
|
|
"Win32_System_Threading",
|
|
"Win32_Security",
|
|
]
|
|
optional = true
|
|
package = "windows"
|
|
|
|
[target.'cfg(target_vendor = "apple")'.dependencies.foreign-types]
|
|
version = "0.5.0"
|
|
optional = true
|
|
|
|
[target.'cfg(target_vendor = "apple")'.dependencies.metal]
|
|
version = "0.31"
|
|
optional = true
|
|
|
|
[target.'cfg(target_vendor = "apple")'.dependencies.objc2]
|
|
version = "0.6.0"
|
|
|
|
[target.'cfg(target_vendor = "apple")'.dependencies.objc2-app-kit]
|
|
version = "0.3.2"
|
|
features = [
|
|
"std",
|
|
"NSResponder",
|
|
"NSView",
|
|
]
|
|
default-features = false
|
|
|
|
[target.'cfg(target_vendor = "apple")'.dependencies.objc2-core-foundation]
|
|
version = "0.3.2"
|
|
features = ["CFCGTypes"]
|
|
default-features = false
|
|
|
|
[target.'cfg(target_vendor = "apple")'.dependencies.objc2-foundation]
|
|
version = "0.3.2"
|
|
features = [
|
|
"std",
|
|
"NSGeometry",
|
|
]
|
|
default-features = false
|
|
|
|
[target.'cfg(target_vendor = "apple")'.dependencies.objc2-metal]
|
|
version = "0.3.2"
|
|
features = [
|
|
"std",
|
|
"MTLCommandQueue",
|
|
"MTLCommandBuffer",
|
|
"MTLResource",
|
|
"MTLTexture",
|
|
"MTLTypes",
|
|
]
|
|
default-features = false
|
|
|
|
[target.'cfg(target_vendor = "apple")'.dependencies.objc2-quartz-core]
|
|
version = "0.3.2"
|
|
features = [
|
|
"std",
|
|
"objc2-metal",
|
|
"CALayer",
|
|
"CAMetalLayer",
|
|
"objc2-core-foundation",
|
|
]
|
|
default-features = false
|
|
|
|
[target.'cfg(target_vendor = "apple")'.dependencies.raw-window-metal]
|
|
version = "1.0"
|
|
|
|
[target.'cfg(target_vendor = "apple")'.dependencies.read-fonts]
|
|
version = "0.37"
|
|
|
|
[target.'cfg(target_vendor = "apple")'.dependencies.skia-safe]
|
|
version = "0.90"
|
|
features = ["metal"]
|
|
|
|
[target.'cfg(target_vendor = "apple")'.dependencies.wgpu-27]
|
|
version = "27"
|
|
features = ["metal"]
|
|
optional = true
|
|
default-features = false
|
|
package = "wgpu"
|
|
|
|
[target.'cfg(target_vendor = "apple")'.dependencies.wgpu-28]
|
|
version = "28"
|
|
features = ["metal"]
|
|
optional = true
|
|
default-features = false
|
|
package = "wgpu"
|
|
|
|
[target.'cfg(target_vendor = "apple")'.dependencies.write-fonts]
|
|
version = "0.45"
|