Vendor i-slint-core 1.16.1 with a one-rule patch in sharedparley's
line culling: with overflow: elide, every line whose bottom edge
exceeded max_height was dropped — INCLUDING the first one, eliding the
text to literally nothing. CJK fallback fonts report line metrics
taller than snug fixed-height boxes (Hiragino at 14px measures ~21px
inside TrackRow's 20px title line), so on macOS every CJK track title
rendered blank while Latin titles fit; Linux survived because Noto's
metrics fit the box. Root-caused with a headless render matrix on the
Mac Mini: the verbatim TrackRow structure reproduced the blank title,
removing elide rendered it, and the patched core renders all variants.
The first line still receives the ellipsis treatment as the last
visible line.
This is the real #543 mechanism. The earlier femtovg render_glyph
retry (3a1c367d) addressed a different, hypothesized layer and stays
as harmless defense in depth.
Fixes #543
cc
391 lines
7.0 KiB
TOML
391 lines
7.0 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-core"
|
|
version = "1.16.1"
|
|
authors = ["Slint Developers <info@slint.dev>"]
|
|
build = false
|
|
autolib = false
|
|
autobins = false
|
|
autoexamples = false
|
|
autotests = false
|
|
autobenches = false
|
|
description = "Internal Slint Runtime Library."
|
|
homepage = "https://slint.dev"
|
|
documentation = "https://slint.dev/docs"
|
|
readme = "README.md"
|
|
keywords = [
|
|
"gui",
|
|
"toolkit",
|
|
"graphics",
|
|
"design",
|
|
"ui",
|
|
]
|
|
categories = [
|
|
"gui",
|
|
"development-tools",
|
|
"no-std",
|
|
]
|
|
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]
|
|
32-bit-color = []
|
|
box-shadow-cache = []
|
|
default = [
|
|
"std",
|
|
"unicode",
|
|
"shared-parley",
|
|
]
|
|
ffi = ["dep:static_assertions"]
|
|
image-decoders = [
|
|
"dep:image",
|
|
"dep:clru",
|
|
]
|
|
image-default-formats = ["image?/default-formats"]
|
|
libm = [
|
|
"num-traits/libm",
|
|
"euclid/libm",
|
|
]
|
|
path = [
|
|
"dep:auto_enums",
|
|
"dep:lyon_path",
|
|
"dep:lyon_geom",
|
|
"dep:lyon_algorithms",
|
|
]
|
|
raw-window-handle-06 = ["dep:raw-window-handle-06"]
|
|
rtti = []
|
|
shared-fontique = ["i-slint-common/shared-fontique"]
|
|
shared-parley = [
|
|
"shared-fontique",
|
|
"dep:parley",
|
|
"dep:skrifa",
|
|
"dep:icu_normalizer",
|
|
]
|
|
shared-swash = ["dep:swash"]
|
|
std = [
|
|
"euclid/std",
|
|
"once_cell/std",
|
|
"dep:scoped-tls-hkt",
|
|
"dep:web-time",
|
|
"dep:lyon_extra",
|
|
"image-decoders",
|
|
"svg",
|
|
"path",
|
|
"raw-window-handle-06?/std",
|
|
"chrono/std",
|
|
"chrono/wasmbind",
|
|
"chrono/clock",
|
|
"dep:sys-locale",
|
|
"shared-fontique",
|
|
"i-slint-common/color-parsing",
|
|
"i-slint-common/markdown",
|
|
"taffy/std",
|
|
]
|
|
svg = ["dep:resvg"]
|
|
testing = []
|
|
tr = ["dep:tr"]
|
|
unicode = [
|
|
"unicode-script",
|
|
"unicode-linebreak",
|
|
]
|
|
unsafe-single-threaded = []
|
|
unstable-wgpu-27 = ["wgpu-27"]
|
|
unstable-wgpu-28 = ["wgpu-28"]
|
|
wgpu-27 = ["dep:wgpu-27"]
|
|
wgpu-28 = ["dep:wgpu-28"]
|
|
|
|
[lib]
|
|
name = "i_slint_core"
|
|
path = "lib.rs"
|
|
|
|
[dependencies.auto_enums]
|
|
version = "0.8.0"
|
|
optional = true
|
|
|
|
[dependencies.bitflags]
|
|
version = "2.4.2"
|
|
|
|
[dependencies.cfg-if]
|
|
version = "1"
|
|
|
|
[dependencies.chrono]
|
|
version = "0.4"
|
|
features = ["alloc"]
|
|
default-features = false
|
|
|
|
[dependencies.clru]
|
|
version = "0.6.0"
|
|
optional = true
|
|
|
|
[dependencies.const-field-offset]
|
|
version = "0.2.0"
|
|
|
|
[dependencies.derive_more]
|
|
version = "2.0.0"
|
|
features = [
|
|
"deref",
|
|
"deref_mut",
|
|
"into",
|
|
"from",
|
|
"add",
|
|
"add_assign",
|
|
"mul",
|
|
"not",
|
|
"display",
|
|
"error",
|
|
]
|
|
default-features = false
|
|
|
|
[dependencies.euclid]
|
|
version = "0.22.1"
|
|
default-features = false
|
|
|
|
[dependencies.i-slint-common]
|
|
version = "=1.16.1"
|
|
features = ["default"]
|
|
default-features = false
|
|
|
|
[dependencies.i-slint-core-macros]
|
|
version = "=1.16.1"
|
|
features = ["default"]
|
|
default-features = false
|
|
|
|
[dependencies.icu_normalizer]
|
|
version = "2"
|
|
features = ["compiled_data"]
|
|
optional = true
|
|
default-features = false
|
|
|
|
[dependencies.image]
|
|
version = "0.25"
|
|
features = [
|
|
"png",
|
|
"jpeg",
|
|
]
|
|
optional = true
|
|
default-features = false
|
|
|
|
[dependencies.lyon_algorithms]
|
|
version = "1.0"
|
|
optional = true
|
|
default-features = false
|
|
|
|
[dependencies.lyon_extra]
|
|
version = "1.0.1"
|
|
optional = true
|
|
default-features = false
|
|
|
|
[dependencies.lyon_geom]
|
|
version = "1.0"
|
|
optional = true
|
|
default-features = false
|
|
|
|
[dependencies.lyon_path]
|
|
version = "1.0"
|
|
optional = true
|
|
default-features = false
|
|
|
|
[dependencies.num-traits]
|
|
version = "0.2"
|
|
default-features = false
|
|
|
|
[dependencies.once_cell]
|
|
version = "1.5"
|
|
features = ["critical-section"]
|
|
default-features = false
|
|
|
|
[dependencies.parley]
|
|
version = "0.8.0"
|
|
optional = true
|
|
|
|
[dependencies.pin-project]
|
|
version = "1"
|
|
|
|
[dependencies.pin-weak]
|
|
version = "1.1"
|
|
default-features = false
|
|
|
|
[dependencies.portable-atomic]
|
|
version = "1"
|
|
features = ["critical-section"]
|
|
|
|
[dependencies.raw-window-handle-06]
|
|
version = "0.6"
|
|
features = ["alloc"]
|
|
optional = true
|
|
package = "raw-window-handle"
|
|
|
|
[dependencies.resvg]
|
|
version = "0.47.0"
|
|
features = [
|
|
"text",
|
|
"raster-images",
|
|
]
|
|
optional = true
|
|
default-features = false
|
|
|
|
[dependencies.rgb]
|
|
version = "0.8.27"
|
|
|
|
[dependencies.scoped-tls-hkt]
|
|
version = "0.1"
|
|
optional = true
|
|
|
|
[dependencies.scopeguard]
|
|
version = "1.1.0"
|
|
default-features = false
|
|
|
|
[dependencies.serde]
|
|
version = "1.0.163"
|
|
features = ["derive"]
|
|
optional = true
|
|
default-features = false
|
|
|
|
[dependencies.skrifa]
|
|
version = "0.40"
|
|
optional = true
|
|
|
|
[dependencies.slab]
|
|
version = "0.4.3"
|
|
default-features = false
|
|
|
|
[dependencies.static_assertions]
|
|
version = "1.1"
|
|
optional = true
|
|
|
|
[dependencies.strum]
|
|
version = "0.28"
|
|
features = ["derive"]
|
|
default-features = false
|
|
|
|
[dependencies.swash]
|
|
version = "0.2.7"
|
|
features = ["scale"]
|
|
optional = true
|
|
default-features = false
|
|
|
|
[dependencies.sys-locale]
|
|
version = "0.3.2"
|
|
features = ["js"]
|
|
optional = true
|
|
|
|
[dependencies.taffy]
|
|
version = "0.9"
|
|
features = [
|
|
"flexbox",
|
|
"taffy_tree",
|
|
"alloc",
|
|
]
|
|
default-features = false
|
|
|
|
[dependencies.tr]
|
|
version = "0.1"
|
|
optional = true
|
|
default-features = false
|
|
|
|
[dependencies.unicode-linebreak]
|
|
version = "0.1.5"
|
|
optional = true
|
|
|
|
[dependencies.unicode-script]
|
|
version = "0.5.7"
|
|
optional = true
|
|
|
|
[dependencies.unicode-segmentation]
|
|
version = "1.12.0"
|
|
|
|
[dependencies.vtable]
|
|
version = "0.4"
|
|
|
|
[dependencies.wgpu-27]
|
|
version = "27"
|
|
optional = true
|
|
default-features = false
|
|
package = "wgpu"
|
|
|
|
[dependencies.wgpu-28]
|
|
version = "28"
|
|
optional = true
|
|
default-features = false
|
|
package = "wgpu"
|
|
|
|
[dev-dependencies.async-compat]
|
|
version = "0.2.4"
|
|
|
|
[dev-dependencies.fontique]
|
|
version = "0.8.0"
|
|
|
|
[dev-dependencies.rustybuzz]
|
|
version = "0.20.0"
|
|
|
|
[dev-dependencies.serde_json]
|
|
version = "1.0.96"
|
|
|
|
[dev-dependencies.tempfile]
|
|
version = "3.12.0"
|
|
|
|
[dev-dependencies.tiny-skia]
|
|
version = "0.12.0"
|
|
|
|
[dev-dependencies.tokio]
|
|
version = "1.35"
|
|
features = [
|
|
"rt-multi-thread",
|
|
"macros",
|
|
"time",
|
|
"net",
|
|
"io-util",
|
|
]
|
|
|
|
[dev-dependencies.ttf-parser]
|
|
version = "0.25"
|
|
|
|
[target.'cfg(target_arch = "wasm32")'.dependencies.wasm-bindgen]
|
|
version = "0.2"
|
|
|
|
[target.'cfg(target_arch = "wasm32")'.dependencies.web-sys]
|
|
version = "0.3.72"
|
|
features = [
|
|
"HtmlImageElement",
|
|
"Navigator",
|
|
]
|
|
default-features = false
|
|
|
|
[target.'cfg(target_arch = "wasm32")'.dependencies.web-time]
|
|
version = "1.0"
|
|
optional = true
|
|
|
|
[target.'cfg(target_family = "unix")'.dependencies.gettext-rs]
|
|
version = "0.7.1"
|
|
features = ["gettext-system"]
|
|
optional = true
|
|
|
|
[lints.clippy.unnecessary_cast]
|
|
level = "allow"
|
|
priority = 0
|
|
|
|
[lints.rust.unexpected_cfgs]
|
|
level = "warn"
|
|
priority = 0
|
|
check-cfg = [
|
|
"cfg(slint_debug_property)",
|
|
"cfg(cbindgen)",
|
|
"cfg(slint_int_coord)",
|
|
"cfg(slint_nightly_test)",
|
|
]
|