neovim-qt
neovim-qt copied to clipboard
:GuiRenderLigatures issues
When I entered the command :GuiRenderLigatures
, some words shifted.
like this:
before:
after:
before:
after:
my os: windows 10
NVIM v0.6.1
nvim-qt: 0.2.17.9999
@xiaohuSuperman Thanks for the bug report!
What font are you using? Can you provide a link or TTF file? Can you paste the problematic characters into the bug?
These issues with :GuiRenderLigatures
are usually font specific. Sometimes the font renders glyphs in a way we did not expect, other times the font is poorly formed.
Once I have the font, Iwill try to reproduce the issue on my machine...
@xiaohuSuperman Thanks for the bug report!
What font are you using? Can you provide a link or TTF file? Can you paste the problematic characters into the bug?
These issues with
:GuiRenderLigatures
are usually font specific. Sometimes the font renders glyphs in a way we did not expect, other times the font is poorly formed.Once I have the font, Iwill try to reproduce the issue on my machine...
The font I use in those pictures is Liga Monaco(Ligature version of Monaco font). At first, I also suspected that it was the font problem, but it was the same when I used fira code font and Hasklig font. here is the link of Liga Monaco.
According to my observation, only some places with special characters have such problems (such as the right side of Java logo). I guess this is the reason.
I see these problems only in the nvim-gps lualine string, but with every font I tried (JetBrains Mono, Hasklig, Fira Code, ...) terminal rendering in e.g. wezterm with JetBrains Mono works fine
Here's a similar issue that I can reproduce over several fonts. Install Input Mono and have the settings:
GuiFont Input Mono
GuiRenderLigatures 0
Then this renders and works normally:
ajdəhoʊ
ɳɳɳɳɳɳɳɳɳbɳ
ℍello World!
With GuiRenderLigatures 1
, we see as per this video.
I get the same behavior with Courier New and Source Code Pro. Note that none of these fonts have ℍ as a glyph, so they use a fallback font. I can reproduce this across lots, if not all, other monospaced fonts I have.
Enable GuiRenderLigatures seems cause some nerd font cut off when the nerd font icon followed with a space.