|
This seems to be the only chance we have of making Pango-via-FontConfig
definitely choose the font that we want.
There was a case
https://dcpomatic.com/forum/viewtopic.php?t=3015
where a user specified Arial Rounded MT Bold but ended up with a
substitution. I tried loading an Arial Rounded, and then FontConfig
chose that even when we asked for Arial Rounded MT Bold. Maybe it's
because both fonts were marked as having "Book" weight ... I don't know.
It seems like the easiest way to get what we want here is to try to
subvert FontConfig's selection logic by giving everything we load
a different family name. If only we could just load a font and tell
Pango to use it ... but it seems like we can't have nice things.
|