mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-10-14 19:26:56 -04:00
The scan read only the platform's font folders, once per session (or on Character panel menu > Refresh Font List). Fonts Windows registers outside its font folders (installed as shortcuts, or by programs into their own folders) never listed, nor did fonts installed while the app was open. - Windows: the font files registered under the local machine's and the user's Fonts registry keys outside the scanned folders are scanned too (windows-registry, the windows-rs project's safe registry API). - Linux/BSD: the XDG data folders' fonts (XDG_DATA_HOME, XDG_DATA_DIRS: Flatpak, Snap, NixOS, Guix) and a Flatpak sandbox's host fonts (/run/host/fonts, local-fonts, user-fonts); macOS: /Network/Library/Fonts. - The global database looks the platform's paths up again at each scan, and a scan's roots may be font files as well as folders. - FontDb::installed_fonts_changed compares the folders the last scan read (their modification times, and the paths it started from); the app checks it when its window comes back to the front and rescans (text.rescanFonts) only when fonts were installed or removed meanwhile. Co-Authored-By: Claude Opus 5.5 <[email protected]>