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 😢:
With Jetbrains Mono NL :tada: :
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.
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.
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 😢:
With Jetbrains Mono NL :tada: :
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.