neovim-qt icon indicating copy to clipboard operation
neovim-qt copied to clipboard

:GuiRenderLigatures issues

Open Lengdrich opened this issue 2 years ago • 6 comments

When I entered the command :GuiRenderLigatures, some words shifted. like this: before: before1 after: after1 before: before2 after: after2 my os: windows 10 NVIM v0.6.1 nvim-qt: 0.2.17.9999

Lengdrich avatar Feb 27 '22 02:02 Lengdrich

@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...

jgehrig avatar Mar 01 '22 20:03 jgehrig

@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.

Lengdrich avatar Mar 03 '22 01:03 Lengdrich

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.

Lengdrich avatar Mar 03 '22 02:03 Lengdrich

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

tomterl avatar Apr 25 '22 11:04 tomterl

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.

cjquines avatar Sep 11 '22 18:09 cjquines

Enable GuiRenderLigatures seems cause some nerd font cut off when the nerd font icon followed with a space.

tan-wei avatar Nov 24 '23 14:11 tan-wei