vercel / geist-font

https://vercel.com/font
SIL Open Font License 1.1
2.13k stars 54 forks source link

fix(mono): maintain fixed width for fractions and code ligatures #44

Open wayne-shih opened 8 months ago

wayne-shih commented 8 months ago

Fixes #33

Rationale and fixes implemented

Few things to note here, this PR tweaks all the mono glyphs to the same metric width (600) -- thus, system and code editors will recognise Geist Mono as a monospace font.

In doing so, a few things needed to be changed :

Test export files -- ttf only

8f30371GeistMono.zip

Note This is a direct export from Glyphs -- not using fontmake or any other undocumented flows you might have in place already

Supporting screenshots

Redrawn fraction glyphs

CleanShot 2023-11-06 at 21 16 00@2x

Now recognised as a monospace by WebStorm (I didn't test other code editors or systems, would be super surprised if others don't recognise it now as a monospace) CleanShot 2023-11-06 at 21 22 22@2x

Ligature still works

CleanShot 2023-11-06 at 21 24 58@2x

Actions and next steps

Keen to get some peer (/stress) testing in to see if I'm missed any code ligature pairings and if any ignore sub needed to be added.

Fractions should be viewed from a design perspective.

If all happy, would need to cut a new release -- I didn't do this bit as it's not documented how y'all are exporting the binary font files (either directly from Glyphs or using fontmake or other scripts)