mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-17 21:52:32 +00:00
Moves font-preview-service's HarfBuzz subsetter into the framework as the one font subsetter: harfbuzz-subset-sys builds the vendored HarfBuzz 15.0.0 subsetter and holds the safe wrappers, so unsafe stays in that crate (added to design-lint's contract/unsafe-allow). craft-font-subset keeps the service's API (subset, subset_renamed, encode_woff2, closure, codepoints) and tests, and adds cut_face for build-time interface cuts. The facade gets the native-only font-subset feature.
25 lines
682 B
TOML
25 lines
682 B
TOML
[package]
|
|
name = "craft-font-subset"
|
|
description = "The font subsetter: HarfBuzz closure, CFF and CFF2, variable-font instancing, licence-aware renaming and WOFF2. Native only."
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
rust-version.workspace = true
|
|
repository.workspace = true
|
|
|
|
[dependencies]
|
|
brotli = { version = "9.1", default-features = false, features = ["std"] }
|
|
harfbuzz-subset-sys = { workspace = true }
|
|
skrifa = "0.49"
|
|
thiserror = { workspace = true }
|
|
unicode-normalization = "0.1.26"
|
|
write-fonts = { version = "0.55", features = ["read"] }
|
|
|
|
[dev-dependencies]
|
|
rustybuzz = "0.20.1"
|
|
serde_json = "1"
|
|
wuff = "0.2.9"
|
|
|
|
[lints]
|
|
workspace = true
|