You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is that an intentional limitation? It seems like the method select_generic_font would be able to find it just fine, but isn't exposed.
The text was updated successfully, but these errors were encountered:
evilpie
changed the title
Looking up fallback/generic versions of fonts (e.g. Times New Roman) with
Looking up fallback/generic versions of fonts (e.g. Times New Roman)
Dec 2, 2023
I tried to implement this, but it actually results in a kind of opposite problem: select_family_by_name will now always match something, even for nonsense family names. This will kind of break the font-kit internal (CSS) font-selection algorithm used for select_best_match when specifying multiple family names.
At least on Linux looking up the font "Times New Roman" with
select_family_by_name
doesn't find the fallback font "Tinos".On the other hand:
fc-match "Times New Roman"
finds itFontconfig::find
does tooIs that an intentional limitation? It seems like the method
select_generic_font
would be able to find it just fine, but isn't exposed.The text was updated successfully, but these errors were encountered: