mirror of
https://github.com/storytold/craft-libs.git
synced 2026-12-01 02:36:54 +01:00
Copies go to %LOCALAPPDATA%\Microsoft\Windows\Fonts\Craft\<family>, are listed as per-user font values under HKCU\...\CurrentVersion\Fonts, loaded with AddFontResourceW, and announced with WM_FONTCHANGE. The ledger records each registry value, so withdrawal unloads the font, deletes the value and then the file. Windows 10 1809 and later, unpackaged builds only. The Win32 calls live in the new crate craft-font-os-windows, the one crate in crates/ allowed unsafe (named in AGENTS.md): it copies the workspace lints with unsafe_code = "deny" and allows unsafe only on the functions that call Win32.