mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-12 08:52:32 +00:00
The interface faces in craft-fonts are full Regular TrueType sources. With the subset feature (build-dependencies only), Embed::subset_to cuts each one with skera to the catalogs' characters from U+2E80 up plus CJK punctuation, kana and full-width forms, keeping every layout feature, and embeds the cut from OUT_DIR. for_ui without catalogs leaves the interface faces out with a warning; a CFF interface face is an error. check_text and the catalogs warn only about characters no embedded face covers.
24 lines
782 B
TOML
24 lines
782 B
TOML
[package]
|
|
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:skera", "dep:skrifa"]
|
|
|
|
[dependencies]
|
|
skera = { version = "0.8", optional = true }
|
|
skrifa = { version = "0.48", default-features = false, features = ["std"], optional = true }
|
|
|
|
[dev-dependencies]
|
|
craft-fonts-build-consumer = { path = "tests/consumer" }
|
|
|
|
[lints]
|
|
workspace = true
|