Apple system fonts carry more than 32 gvar variation tuples per glyph (SFNS.ttf: 54). Without the gvar-alloc heap spill, VariationTuples::reserve fails past its stack capacity and outline_glyph returns None for most glyphs — variable-font text renders completely blank. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> (cherry picked from commit f401d4d567245809f4ede9aa2d4a4b54157367fd)
89 lines
2.1 KiB
TOML
89 lines
2.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"
|
|
name = "rustybuzz"
|
|
version = "0.18.0"
|
|
authors = ["Yevhenii Reizner <razrfalcon@gmail.com>"]
|
|
exclude = [
|
|
"benches/",
|
|
"tests/",
|
|
]
|
|
description = "A complete harfbuzz shaping algorithm port to Rust."
|
|
documentation = "https://docs.rs/rustybuzz/"
|
|
readme = "README.md"
|
|
keywords = [
|
|
"text",
|
|
"shaping",
|
|
"opentype",
|
|
"truetype",
|
|
]
|
|
categories = ["text-processing"]
|
|
license = "MIT"
|
|
repository = "https://github.com/RazrFalcon/rustybuzz"
|
|
|
|
[dependencies.bitflags]
|
|
version = "2.4.1"
|
|
path = "../bitflags"
|
|
|
|
[dependencies.bytemuck]
|
|
version = "1.5"
|
|
path = "../bytemuck"
|
|
features = ["extern_crate_alloc"]
|
|
|
|
[dependencies.makepad-error-log]
|
|
version = "1.0.0"
|
|
path = "../error_log"
|
|
|
|
[dependencies.smallvec]
|
|
version = "1.6"
|
|
path = "../smallvec"
|
|
|
|
[dependencies.ttf-parser]
|
|
version = "0.24.1"
|
|
path = "../ttf-parser"
|
|
features = [
|
|
"opentype-layout",
|
|
"apple-layout",
|
|
"variable-fonts",
|
|
"glyph-names",
|
|
# Apple system fonts (SF, PingFang) have >32 gvar tuples per glyph
|
|
# (SFNS.ttf: 54); without the heap spill in gvar-alloc, outline_glyph
|
|
# returns None for most glyphs and variable-font text renders blank.
|
|
"gvar-alloc",
|
|
]
|
|
default-features = false
|
|
|
|
[dependencies.unicode-bidi-mirroring]
|
|
version = "0.3.0"
|
|
path = "../unicode/unicode-bidi-mirroring"
|
|
|
|
[dependencies.unicode-ccc]
|
|
version = "0.3.0"
|
|
path = "../unicode/unicode-ccc"
|
|
|
|
[dependencies.unicode-properties]
|
|
version = "0.1.0"
|
|
path = "../unicode/unicode-properties"
|
|
features = ["general-category"]
|
|
default-features = false
|
|
|
|
[dependencies.unicode-script]
|
|
version = "0.5.2"
|
|
path = "../unicode/unicode-script"
|
|
|
|
[lints.rust.unexpected_cfgs]
|
|
level = "allow"
|
|
|
|
[features]
|
|
default = ["std"]
|
|
std = ["ttf-parser/std"]
|