mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-12-06 05:53:08 -05:00
Since the move to the craft font catalog, the global catalog asked the platform's font service (DirectWrite on Windows, CoreText on macOS) and also ran the app's platform lister, which lists the same fonts again. On Windows the font service opens and maps every installed face, so the background font scan did that work twice at every start. set_platform_font_files_complete sets a lister that lists every font the font service lists. The catalog then reads the lister's files and does not ask the font service. set_platform_font_files keeps adding to the font service as before. The desktop app and vectorcraft-cli install their Windows and macOS listers with the new call; both listers already read DirectWrite's system collection (plus GDI's fonts) and CoreText's available fonts.