fontique's CoreText-based Han-script fallback fails to resolve a family on modern macOS (the suggested PingFang is not always in the scanned family map), so Japanese kanji rendered blank while kana worked. Vendor i-slint-common 1.16.1 and pre-register Hiragino / PingFang / Apple SD Gothic Neo / Arial Unicode MS in the fallback map at collection creation (Japanese-biased default; the map takes priority over the CoreText query). macOS-only cfg; Linux keeps its working fontconfig fallback. Type-checked against aarch64-apple-darwin. cc
86 lines
1.9 KiB
TOML
86 lines
1.9 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-common"
|
|
version = "1.16.1"
|
|
authors = ["Slint Developers <info@slint.dev>"]
|
|
build = false
|
|
autolib = false
|
|
autobins = false
|
|
autoexamples = false
|
|
autotests = false
|
|
autobenches = false
|
|
description = "Helper crate for sharing code & data structures between i-slint-core and slint-compiler"
|
|
homepage = "https://slint.dev"
|
|
documentation = "https://slint.dev/docs"
|
|
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]
|
|
color-parsing = []
|
|
default = []
|
|
fontconfig-dlopen = ["fontique?/fontconfig-dlopen"]
|
|
markdown = [
|
|
"dep:pulldown-cmark",
|
|
"dep:htmlparser",
|
|
"dep:derive_more",
|
|
"color-parsing",
|
|
]
|
|
shared-fontique = [
|
|
"dep:fontique",
|
|
"dep:skrifa",
|
|
]
|
|
|
|
[lib]
|
|
name = "i_slint_common"
|
|
path = "lib.rs"
|
|
|
|
[dependencies.derive_more]
|
|
version = "2.0.0"
|
|
features = [
|
|
"deref",
|
|
"deref_mut",
|
|
"into",
|
|
"from",
|
|
"add",
|
|
"add_assign",
|
|
"mul",
|
|
"not",
|
|
"display",
|
|
"error",
|
|
"display",
|
|
]
|
|
optional = true
|
|
default-features = false
|
|
|
|
[dependencies.fontique]
|
|
version = "0.8.0"
|
|
optional = true
|
|
|
|
[dependencies.htmlparser]
|
|
version = "0.2.1"
|
|
optional = true
|
|
|
|
[dependencies.pulldown-cmark]
|
|
version = "0.13.0"
|
|
optional = true
|
|
|
|
[dependencies.skrifa]
|
|
version = "0.40"
|
|
optional = true
|