Files
designcraft/crates/fonts/Cargo.toml
T
aiongg 833c0ec8d6 Fonts: macOS fonts that font services and managers activate are listed
The system font scan also reads the font files CoreText has available
(core-text's collection of all available fonts, safe API), so fonts that
Adobe Fonts, RightFont and other font managers register from their own
folders are cataloged. Files the font folders already hold are read once;
paths that lead to no file are skipped. FontDb::global serves the desktop
app and designcraft-cli alike; the scan stays in the background.

Fixes #261, #327.
2026-10-11 01:50:32 +00:00

28 lines
882 B
TOML

[package]
name = "designcraft-fonts"
version.workspace = true
edition.workspace = true
license.workspace = true
description = "DesignCraft fonts: font database (bundled OFL + system), metrics, glyph outlines, shaping"
[lints]
workspace = true
[features]
# Synthetic fonts for other crates' tests (`designcraft_fonts::testing`).
testing = []
[dependencies]
kurbo = { workspace = true }
skrifa = { workspace = true }
harfrust = { workspace = true }
unicode-bidi = { workspace = true }
unicode-script = { workspace = true }
log = { workspace = true }
[target.'cfg(target_os = "macos")'.dependencies]
# The font files CoreText has available (src/mac_fonts.rs): fonts that font services and managers
# register from their own folders. A safe API; MIT OR Apache-2.0. 20.x shares core-foundation 0.9
# and core-graphics 0.23 with the dependencies already locked.
core-text = "=20.1.0"