which-key-posframe icon indicating copy to clipboard operation
which-key-posframe copied to clipboard

spacing issues (width / line wrapping), possibly related to font/ligatures

Open eeshugerman opened this issue 3 years ago • 1 comments

EDIT: This might not actually have to do with the font; see update below.

My default font is Jetbrains Mono, which has ligatures. Unless I set which-key-posframe-font to Jetbrains Mono NL (no ligatures), the posframe is too narrow, so lines wrap, leading to further spacing horrors.

With Jetbrains Mono 😢: image

With Jetbrains Mono NL :tada: : image

I've also seen this, though not consistently, with Fira Code, which has ligatures as well.

TBH the existence of which-key-posframe-font makes this nearly a non-issue, but it took me a long time to find the problem/solution, so this post is mostly to point others in the right direction if they run into this too.

eeshugerman avatar Sep 11 '21 17:09 eeshugerman

UPDATE: This keeps coming back. Changing the font usually (but not always) fixes the issue for a bit, but not forever. So really I have no idea what's going on.

eeshugerman avatar Dec 04 '21 16:12 eeshugerman