Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rework the font loading in the GL backend
The basic idea is to use fontdb's load_system_fonts() mechanism, in conjunction with its built-in mmap support, to get an overview over all installed fonts on macOS, Windows and Linux. This isn't quite perfect in terms of discovering systems defaults, but it's much faster than font-kit's approach of querying the system (good) but reading the matched files into memory (not using mmap). And we have the option of perfecting it by using fontconfig directly on Linux (where the backend is most important). This also paves the way for better fallback handling, as now we have a list of all available families and we can use system APIs to query for fallbacks.
- Loading branch information