daa84 / neovim-gtk

gtk ui for neovim
GNU General Public License v3.0
718 stars 57 forks source link

Characters aren't being drawn sometimes #254

Open jacobmischka opened 4 years ago

jacobmischka commented 4 years ago

For reasons I don't fully understand (looks like something related to the error icon created by ale in the gutter on the left), characters aren't being rendered sometimes.

Notice that the line number in the gutter and the => glyphicon don't display in nvim-gtk (bottom), while they both do in gnome-terminal (top):

image

Technical information (please complete the following information):

jacobmischka commented 4 years ago

The issue does disappear when I disable ale, so I'm pretty confident that is what's causing it.

image

jacobmischka commented 4 years ago

This seems to happen whenever that character in the gutter is something more complex than ASCII. For example, if I change the icon from ⚠ to >> then it renders fine:

image

image

pitbuster commented 4 years ago

I can confirm that reverting to pango 1.44 solves the problem, as mentioned in #255. I wonder if this is an upstream bug in pango.

YaLTeR commented 4 years ago

I can confirm that reverting to pango 1.44 solves the problem, as mentioned in #255. I wonder if this is an upstream bug in pango.

Looking at other pango bug reports, they generally reply that unless it reproduces in gedit or pango-view it's likely an application issue (e.g. incorrect handling of glyph metrics).