PhotoCraft: An open-source, photo editor written by scratch in pure Rust
Merge PR #6693: macOS: list fonts activated outside the font folders (#6683)
aiongg44ef277439fb
diff --cc crates/text/Cargo.tomlindex 0c251d163,f7d4150fa..88ea57c94--- a/crates/text/Cargo.toml+++ b/crates/text/Cargo.toml@@@ -25,11 -25,17 +25,19 @@@ flate2 = { workspace = true# line breaking. Native only: the CJK dictionary alone is 3.8 MB of wasm, and the web build must# stay under Cloudflare's 25 MiB per-file cap (packaging/web/package.sh). The web build falls back# to the generic Unicode rules for those scripts.+# Native only: the glyph rasteriser composites and converts its pixel buffers on all cores.[target.'cfg(not(target_arch = "wasm32"))'.dependencies]parley = { version = "0.11", default-features = false, features = ["std", "complex-scripts"] }+rayon = { workspace = true }+ # macOS only: the `system` feature adds fontique's Core Text backend, which lists every font the+ # system offers wherever its file lives (fonts a font manager or Adobe Fonts activated, Office's+ # own, Apple's on-demand downloads). `fonts.rs` reads only its list of files and registers them+ # like the folder scan's, so our own collection keeps its behaviour (generic families, merging+ # installed faces into the bundled families). It uses no fontconfig, unlike `system` on Linux.+ [target.'cfg(target_os = "macos")'.dependencies]+ parley = { version = "0.11", default-features = false, features = ["std", "complex-scripts", "system"] }+[build-dependencies]# Deflates the bundled fonts (build.rs); `flate2` above inflates them.flate2 = { workspace = true }