Fix Windows caching once and for all
I get this may sound a bit of an unorthodox bug report.
But across many projects, I could find many people banging their heads over the most abstruse crashes or delays. And once the problem is figured out (if even), nothing else gets done because fonts handling is not exactly something that 99% of developers want to care or know.
https://github.com/Psychtoolbox-3/Psychtoolbox-3/issues/579
https://github.com/xournalpp/xournalpp/issues/3638
https://github.com/msys2/MINGW-packages/issues/2954
Now I wouldn't really know what's the way forward. Rework the path discovery code with more "constraints"? Make sure FcConfigXdgCacheHome
doesn't also return on Windows? Make the cache file loading/invalidation more robust? Do nothing code-wise and just write some very extensive and specific documentation about all the knobs to keep an eye on?
But I believe something should still be done here.