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
35 lines
1.1 KiB
TOML
35 lines
1.1 KiB
TOML
# Copyright © SixtyFPS GmbH <info@slint.dev>
|
|
# SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-2.0 OR LicenseRef-Slint-Software-3.0
|
|
|
|
[package]
|
|
name = "i-slint-common"
|
|
description = "Helper crate for sharing code & data structures between i-slint-core and slint-compiler"
|
|
authors.workspace = true
|
|
documentation.workspace = true
|
|
edition = "2024"
|
|
homepage.workspace = true
|
|
license.workspace = true
|
|
repository.workspace = true
|
|
rust-version.workspace = true
|
|
version.workspace = true
|
|
|
|
[lib]
|
|
path = "lib.rs"
|
|
|
|
[features]
|
|
default = []
|
|
shared-fontique = ["dep:fontique", "dep:skrifa"]
|
|
color-parsing = []
|
|
fontconfig-dlopen = ["fontique?/fontconfig-dlopen"]
|
|
markdown = ["dep:pulldown-cmark", "dep:htmlparser", "dep:derive_more", "color-parsing"]
|
|
|
|
[dependencies]
|
|
fontique = { workspace = true, optional = true }
|
|
skrifa = { workspace = true, optional = true }
|
|
pulldown-cmark = { version = "0.13.0", optional = true }
|
|
htmlparser = { version = "0.2.1", optional = true }
|
|
derive_more = { workspace = true, optional = true, features = ["error", "display"] }
|
|
|
|
[package.metadata.docs.rs]
|
|
rustdoc-args = ["--generate-link-to-definition"]
|