mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-30 02:04:32 +01:00
The subset feature uses craft-font-subset's cut_face (HarfBuzz) in place of skera, which leaves the workspace. CFF interface faces now cut correctly, so Error::NotTrueType goes; a cut keeps its source's extension.
24 lines
718 B
TOML
24 lines
718 B
TOML
[package]
|
|
autotests = false
|
|
name = "craft-fonts-build"
|
|
description = "Embeds the optional craft-fonts faces from an app's build.rs, plus the EmbeddedFace type the generated table uses."
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
rust-version.workspace = true
|
|
repository.workspace = true
|
|
|
|
[features]
|
|
# Cut the `role ui` faces to the catalogs' characters (`Embed::subset_to`). Enable it only in an
|
|
# app's `[build-dependencies]`, so the subsetter stays out of the app itself.
|
|
subset = ["dep:craft-font-subset"]
|
|
|
|
[dependencies]
|
|
craft-font-subset = { workspace = true, optional = true }
|
|
|
|
[dev-dependencies]
|
|
craft-fonts-build-consumer = { path = "tests/consumer" }
|
|
|
|
[lints]
|
|
workspace = true
|