Open Dimon-II opened 5 months ago
I don't think fontdb
cares about fonts order at the moment. Will think about it.
As far as I understand, the first loaded system font of the same name either prevents the local font from loading, or when selecting a font by name, it appears first.
Technically, having the same font family twice is already a bug. But checking for uniqueness would be expensive, therefore we do not do this.
I will think about a proper solution.
I encountered this situation during testing colored SVG icons font. I wanted to have a local version of the font having game icons aligned with the text. When working with resvg.dll, I changed the font loading order. It seems to me that this is a logical option for an executable file as well.
Local fonts may contain a modified version of a font installed in the system. It makes sense to use local fonts first, without refusing to load system fonts.
Change the call sequence
fontdb.load_system_fonts();
and