rohit-px2/nvui

Spacing issues on macOS

bmulholland opened this issue · 5 comments

There are weird blank spots and alignment issues on macOS that I haven't seen using the same config on different (G)UIs:

Near the end of a line: there's text not showing, as you can see where my cursor is:
Screen Shot 2021-09-22 at 15 49 07

Here there are weird spaces before the :: chars:
Screen Shot 2021-09-22 at 15 50 14

Here there's one space before and after the = sign. Also, the word actually reads "URL" and the cursor is on the R - but it's overlapping the L, so you see two R's.
Screen Shot 2021-09-22 at 15 50 58

And here's the telescope UI:
Screen Shot 2021-09-22 at 15 52 44

Yeah that doesn't look right. I think it might (potentially) be that the font width is bigger than nvui has calculated it?
Some questions:

  • What's your guifont setting?
  • If you switch to a different font or raise/lower the font size, are these issues still there?

guifont is VictorMono Nerd Font. It has ligatures so maybe that's the problem?

Don't have time to test different fonts or sizes right now, will report back later.

Ligatures shouldn't be the problem.
Could you try building #68 and seeing if that fixes it?

Actually I think it might be the font. I just installed Victor Mono Nerd Font on Windows and those graphical glitches are showing up for me. Victor Mono (non-nerd font) works perfectly fine though.
I'll try to fix this. In the meantime, if other fonts are working, you can try defining a fallback font e.g.
set guifont=Victor\ Mono,FiraCode\ NF for nerd font fallback.
Edit: I tried set guifont=Victor\ Mono,VictorMono\ NF and I don't get any glitches. It might be a ligature bug due to patching with nerd fonts.

Thanks for the workaround. I'm evaluating other GUIs now, will come back around to nvui later :)