monaspace icon indicating copy to clipboard operation
monaspace copied to clipboard

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

Open cpdean opened this issue 1 year ago • 3 comments

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

cpdean avatar Nov 11 '23 01:11 cpdean

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.

33b5e5 avatar Nov 13 '23 04:11 33b5e5

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

gustafe avatar Nov 13 '23 20:11 gustafe

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

jamesez avatar Nov 16 '23 16:11 jamesez

Fixed in ca8015b27bdc6d8e1201b1ad722f4ae3c38970d0

idan avatar May 03 '24 23:05 idan