mirror of
https://github.com/storytold/designcraft.git
synced 2026-10-24 10:16:59 -06:00
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.
28 lines
882 B
TOML
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"
|