Windows fonts: list the fonts only GDI has loaded, such as Creative Cloud's Adobe Fonts (#1258)

Squashed from #4130 onto main.
This commit is contained in:
Andrés Ortega
2026-10-26 17:51:42 +07:00
committed by bflatastic
parent 87470ef0b7
commit 88060b199f
5 changed files with 255 additions and 29 deletions
+4 -3
View File
@@ -32,10 +32,11 @@ log = { workspace = true }
[target.'cfg(windows)'.dependencies]
winsafe = { version = "0.0.29", default-features = false, features = ["kernel", "psapi"] }
# DirectWrite's system font collection (the desktop app's src/system_fonts.rs, shared): fonts that
# font services such as Adobe Fonts load in place (#579). MIT OR Apache-2.0.
# DirectWrite's system font collection and GDI's font list (the desktop app's src/system_fonts.rs,
# shared): fonts that font services such as Adobe Fonts load in place (#579, #1258). MIT OR
# Apache-2.0.
[target.'cfg(all(windows, not(target_vendor = "win7")))'.dependencies]
windows = { version = "0.62", features = ["Win32_Graphics_DirectWrite"] }
windows = { version = "0.62", features = ["Win32_Graphics_DirectWrite", "Win32_Graphics_Gdi"] }
# CoreText's font manager (the desktop app's src/mac_fonts.rs, shared): fonts that apps and font
# managers register from their own folders (#579). Zlib OR Apache-2.0 OR MIT.