yanghaoxie / which-key-posframe

Let emacs-which-key use posframe to show its popup.
GNU General Public License v3.0
52 stars 10 forks source link

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

Open eeshugerman opened 3 years ago

eeshugerman commented 3 years ago

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 commented 2 years ago

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.