Files
qbz/crates/vendor/femtovg-0.23.2/Cargo.toml
T
vicrodh 3a1c367d1a fix(text): render CJK glyphs at non-regular weights on macOS
Vendor femtovg 0.23.2 with a targeted patch: the swash raster path can
fail to scale some variable fonts at a non-default variation instance
(the CFF2-based CJK system fonts on modern macOS), and femtovg cached
those glyphs as permanently missing — so track titles and any other
text at medium/semibold/bold weight rendered blank for CJK while
regular weight (empty coords) worked. render_glyph now retries the
glyph at the font's default instance before giving up: worst case the
glyph draws at regular weight instead of not at all. Fonts and
instances that already render are untouched.

Fixes #543

cc
2026-07-05 08:23:17 -06:00

272 lines
5.1 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 = "2021"
rust-version = "1.88"
name = "femtovg"
version = "0.23.2"
authors = [
"Peter Todorov <ptodorov@cytec.bg>",
"Adam Nemecek <adamnemecek@gmail.com>",
]
build = false
exclude = [
"assets",
"examples",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Antialiased 2D vector drawing library"
readme = "README.md"
keywords = [
"graphics",
"canvas",
"vector",
"drawing",
"gpu",
]
categories = ["graphics"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/femtovg/femtovg"
[package.metadata.docs.rs]
features = ["glutin/egl"]
all-features = true
rustdoc-args = [
"--cfg",
"docsrs",
]
[features]
debug_inspector = []
default = [
"image-loading",
"textlayout",
]
image-loading = ["image"]
swash = ["dep:swash"]
textlayout = [
"dep:rustybuzz",
"dep:unicode-bidi",
"dep:unicode-segmentation",
"dep:lru",
"dep:ttf-parser",
]
wgpu = ["dep:wgpu"]
[lib]
name = "femtovg"
path = "src/lib.rs"
[[example]]
name = "book_example_1_1"
path = "book/src/1_getting_started/1_setting_up.rs"
[[example]]
name = "book_example_1_2"
path = "book/src/1_getting_started/2_rendering.rs"
[[example]]
name = "book_example_1_3"
path = "book/src/1_getting_started/3_event_loop.rs"
[[test]]
name = "integration"
path = "tests/integration.rs"
[[test]]
name = "transform2D"
path = "tests/transform2D.rs"
[dependencies.bitflags]
version = "2.6.0"
[dependencies.bytemuck]
version = "1.16"
features = ["derive"]
[dependencies.fnv]
version = "1.0.7"
[dependencies.glow]
version = "0.17.0"
default-features = false
[dependencies.image]
version = "0.25.0"
optional = true
default-features = false
[dependencies.imgref]
version = "1.11.0"
[dependencies.itertools]
version = "0.14"
[dependencies.log]
version = "0.4"
[dependencies.lru]
version = "0.16.0"
optional = true
default-features = false
[dependencies.rgb]
version = "0.8.50"
[dependencies.rustybuzz]
version = "0.20.0"
optional = true
[dependencies.serde]
version = "1.0"
features = [
"derive",
"rc",
]
optional = true
[dependencies.slotmap]
version = "1.0.7"
[dependencies.swash]
version = "0.2.6"
optional = true
[dependencies.ttf-parser]
version = "0.25.1"
optional = true
[dependencies.unicode-bidi]
version = "0.3.17"
optional = true
[dependencies.unicode-segmentation]
version = "1.12.0"
optional = true
[dependencies.wgpu]
version = "28"
features = ["wgsl"]
optional = true
default-features = false
[dev-dependencies.cosmic-text]
version = "0.18.2"
[dev-dependencies.euclid]
version = "0.22.3"
[dev-dependencies.image]
version = "0.25.0"
features = [
"jpeg",
"png",
]
default-features = false
[dev-dependencies.instant]
version = "0.1"
features = ["now"]
[dev-dependencies.lazy_static]
version = "1.4.0"
[dev-dependencies.pollster]
version = "0.4"
[dev-dependencies.rand]
version = "0.10"
[dev-dependencies.resource]
version = "0.6.1"
[dev-dependencies.swash]
version = "0.2.6"
[dev-dependencies.usvg]
version = "0.47.0"
[dev-dependencies.wgpu]
version = "28"
[dev-dependencies.winit]
version = "0.30.12"
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.glutin]
version = "0.32"
optional = true
default-features = false
[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.glutin]
version = "0.32.3"
[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.glutin-winit]
version = "0.5.0"
[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.parley]
version = "0.8.0"
[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.raw-window-handle]
version = "0.6.2"
[target.'cfg(target_arch = "wasm32")'.dependencies.wasm-bindgen]
version = "0.2"
[target.'cfg(target_arch = "wasm32")'.dependencies.web_sys]
version = "0.3"
features = [
"WebGlContextAttributes",
"HtmlImageElement",
"WebGl2RenderingContext",
]
package = "web-sys"
[target.'cfg(target_arch = "wasm32")'.dev-dependencies.console_error_panic_hook]
version = "0.1.5"
[target.'cfg(target_arch = "wasm32")'.dev-dependencies.getrandom]
version = "0.4.1"
features = ["wasm_js"]
[target.'cfg(target_arch = "wasm32")'.dev-dependencies.instant]
version = "0.1"
features = [
"wasm-bindgen",
"now",
]
[target.'cfg(target_arch = "wasm32")'.dev-dependencies.resource]
version = "0.6.1"
features = ["force-static"]
[target.'cfg(target_arch = "wasm32")'.dev-dependencies.wasm-bindgen-futures]
version = "0.4.45"
[target.'cfg(target_arch = "wasm32")'.dev-dependencies.web_sys]
version = "0.3"
features = [
"console",
"WebGlContextAttributes",
]
package = "web-sys"
[target.'cfg(target_arch = "wasm32")'.dev-dependencies.wgpu]
version = "28"
features = ["webgl"]
[profile.release]
debug = 2