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
At the moment, get_ligature_source tries to match a font based on the filename, assuming that if it exactly matches the suffix on one of the Fira Code names, it should use that, otherwise it should use "bold" for "bold" or "heavy" fonts and "regular" for everything else.
Instead, it should match based on weight, stored in the os2_weight field. The weights for Fira Code are:
300 Light
400 Regular
450 Retina
500 Medium
700 Bold
It should pick the closest weight; in the case of a tie, it's probably best to select the lighter weight, but I'm not sure.
The text was updated successfully, but these errors were encountered:
At the moment,
get_ligature_source
tries to match a font based on the filename, assuming that if it exactly matches the suffix on one of the Fira Code names, it should use that, otherwise it should use "bold" for "bold" or "heavy" fonts and "regular" for everything else.Instead, it should match based on weight, stored in the
os2_weight
field. The weights for Fira Code are:It should pick the closest weight; in the case of a tie, it's probably best to select the lighter weight, but I'm not sure.
The text was updated successfully, but these errors were encountered: