neovide: Font Fallback Fails for Certain Glyphs
Describe the bug (continued form https://github.com/Kethku/neovide/issues/741#issuecomment-867731459)
To Reproduce Steps to reproduce the behavior:
- Download/install neovide
- Set gui font to a nerd font (user is using CaskaydiaCove Nerd Font, (I believe this is Cascadia Code)
- Open a Nerdtree buffer
- See error
Expected behavior Glyphs should render correctly.
Screenshots
(top terminal, bottom neovide)
Desktop (please complete the following information):
- OS: MacOS 11
- Neovide Version: Latest intel build pulled from github actions (running on an m1 machine)
- Neovim Version: 0.5.0 nightly
Please run neovide --log
and paste the results here:
–not run, don’t think its required for this issue
Additional context User is using Cascadia code nerd font, but has tried it with “FiraCode, FuraCode and JetBrainsMono nerd fonts. None of them worked.” I will test this on my personal machine shortly
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 33 (7 by maintainers)
I just merged a change which I believe fixes this issue. Can you try building from main?
I have the same problem on Windows, but I believe the description of the bug is wrong.
It doesn’t seem to have anything to do with font fallbacks, it happens when using patched fonts with all the required glyphs.
Instead I’m fairly sure it’s related to how colored double width glyphs are rendered. For me it happens with telescope.nvim, but only if I set the option
color_devicons
to true. It does not happen innvim-tree.lua
, but that’s because it has a workaround in the plugin itselfThis is not a unique problem to Neovide, some terminals also have the same problem, but others like Alacritty, which I’m using render the glyphs correctly.
The issue is discussed here https://github.com/nvim-telescope/telescope.nvim/issues/674, and here https://github.com/nvim-telescope/telescope.nvim/issues/358 The fix for nvim-tree (adds highlight to the space following the glyph) is here https://github.com/kyazdani42/nvim-tree.lua/pull/162
@IBS27 @Kethku snap is just for Linux.
Lua shouldn’t be an issue. If you would like to test my config, you can use
Note that you need to install nvim-tree and nvim-devicons for this to work