githubnext / monaspace

An innovative superfamily of fonts for code
https://monaspace.githubnext.com
SIL Open Font License 1.1
13.18k stars 220 forks source link

Kerning issue with double forward slash ( `https://github...` ) #60

Closed cpdean closed 2 months ago

cpdean commented 7 months ago

In the default Terminal.app on macOS, the kerning immediately following two forward slash characters causes the next character to share the same space in the grid. For example, https://github... renders as:

image

Another example:

**hey
//hey
image

Besides just the rendering issue, the kerning is severe enough that the terminal's cursor will appear offset for every character after the double forward slash. In the following two screenshots, the cursor is highlighting the letter y of hey

image image
33b5e5 commented 7 months ago

I can reproduce this on macOS Sonoma 14.1.1, using the default Terminal.

The overlapped text only appears with the variable fonts. For example:

Monaspace Neon Regular, size 14: ok Monaspace Neon Var, size 14: overlapped

The pattern holds across the other 4 fonts. All the variable versions are bugged for //.

The behavior is the same from a zsh prompt, in vi, or using cat.

gustafe commented 7 months ago

Same sort of behavior can be seen by inputting 2 or more dots (periods) instead of slashes.

jamesez commented 7 months ago

There's a workaround, flip to the non-"Var" version, which - for me - showed up in All Fonts and not under Fixed Width: https://github.com/githubnext/monaspace/issues/79#issuecomment-1811569036

idan commented 2 months ago

Fixed in ca8015b27bdc6d8e1201b1ad722f4ae3c38970d0