mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-06-02 05:28:46 +03:00

Fixes #707 Our scoring algorithm previously did not take into account symbolic traits, so when `bold = false and italic = false`, regular, bold, italic would all be equally likely to appear first. This modifies our scoring algorithm to prioritize matching symbolic traits. Further, we have a special case for no symbolic traits to prioritize "Regular" named styles. We can expand this to other styles too but we do not do this here. We also modified the algorithm to always prefer fonts with more glyphs over fonts with less, hopeful that we can load fewer fonts for other glyphs later.