Files
ghostty/src/font
Mitchell Hashimoto 84aa359984 font: rework coretext discovery sorting (#7483)
This should make the sorting more robust to fonts with questionable
metadata or atypical style names.

I was originally just going to change the scoring slightly to account
for fonts whose regular italic style is named "Regular Italic" - which
previously resulted in the Bold Italic or Thin Italic style being chosen
instead because they're shorter names, but I decided to do some better
inspection of the metadata and looser style name matching while I was
changing code here anyway.

Also adds a unit test to verify the sorting works correctly, though a
more comprehensive set of tests may be desirable in the future.

(Feel free to make any changes to the PR you feel necessary before
merging while I'm gone over the weekend.)
2025-05-30 19:30:19 -07:00
..
2025-05-26 21:50:14 -06:00
2025-05-26 21:50:14 -06:00
2025-03-18 13:58:49 -07:00
2025-05-26 21:50:14 -06:00
2025-05-26 21:50:14 -06:00
2025-05-26 21:50:14 -06:00
2025-03-12 09:59:24 -07:00
2025-03-11 14:39:04 -07:00
2025-03-18 13:58:49 -07:00
2025-05-26 21:50:14 -06:00