daa84 / neovim-gtk

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

Bold text overlaps with the rest of the text #174

Closed adrian-martinez-dev closed 4 years ago

adrian-martinez-dev commented 5 years ago

Describe the bug Bold text overlaps with the rest of the text captura de pantalla de 2019-01-30 09-47-18

Technical information (please complete the following information):

daa84 commented 5 years ago

Looks like you use non monospaced font. Vim currently support only monospaced font because renderer is limited to grid.

clason commented 5 years ago

I have the same issue with Droid Sans Mono (definitely a monospaced font that works with neovim TUI and neovim-qt): image (The colorscheme is OceanicNext; setting let g:oceanic_next_terminal_bold = 0 in init.vim makes no difference.)

EDIT: I think this is a general issue with the ligatures support; for example, bold in Fira Code works (even though it looks decidedly not monospaced). Is there a way of turning ligatures off for checking?

ceuk commented 4 years ago

@clason looks like it's related to ligatures, but not just any font with ligatures e.g.

:call rpcnotify(1, 'Gui', 'Font', 'Hack 12') (no ligatures) works :call rpcnotify(1, 'Gui', 'Font', 'FuraCode Nerd Font Mono 12') (ligatures) doesn't work, also some of the ligatures, e.g. !== and ... look odd. This font works fine in other apps. :call rpcnotify(1, 'Gui', 'Font', 'Fira Code 12') (ligatures), works. ligatures all work fine too

adrian-martinez-dev commented 4 years ago

I fixed it installing bold and italics missing font files, the issue is related to 'synthetic boldification', take a look here: https://github.com/vhakulinen/gnvim/issues/84