Neovide: How to set font ?

Created on 8 Feb 2021  路  9Comments  路  Source: Kethku/neovide

how I run neovde:

$ neovide.exe --wsl file.txt

where is my font? In windows terminal it works correctly.
懈蟹芯斜褉邪卸械薪懈械

bug

Most helpful comment

In your init.vim:

set guifont=font:hsize

For example, if I wanted to use FiraCode NF at 16pt size:

set guifont=FiraCode\ NF:h16

(the backslash is used to escape the space)

Edit: Wait nvm I see you've already set guifont - well in that case idk what's the problem

All 9 comments

hey, I have the same problem on Arch Linux, icons in airline's bar are replaced by squares. In terminal with the same font all is working

After I wrote this I made one more attempt with Hack\ Nerd\ Font\ Mono and some of the icons in Airline bar started working, so I guess it's really about hitting the right font. Still strange, though, that in terminal all works 100%

In your init.vim:

set guifont=font:hsize

For example, if I wanted to use FiraCode NF at 16pt size:

set guifont=FiraCode\ NF:h16

(the backslash is used to escape the space)

Edit: Wait nvm I see you've already set guifont - well in that case idk what's the problem

the font names may need to be slightly different for skia to pick them up. Do you encounter the same issue with other more standard fonts such as consolas?

If swapping that way works, I think probably you got the font name wrong.

image

I seem to be having the same issue with:

vim.o.guifont = "JetBrainsMono Nerd Font"

and the mono variant as well.

Hack kinda works

SauceCodePro seems to work well

Does the alphabetic text match the set font in your screen cap? If so, then the squares represent glyphs not present in the font and other systems are using some form of font fallback to render them. There is ongoing work tracked here: https://github.com/Kethku/neovide/issues/444 to add better font fallback, but its going to be a bit to get it right

Thanks for your help! The last question: how to zoom out and zoom in on the text?

@peach-lasagna you can :set guifont with your preferred font size.

oh, exactly!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

pranphy picture pranphy  路  36Comments

aj3423 picture aj3423  路  45Comments

svermeulen picture svermeulen  路  26Comments

habamax picture habamax  路  67Comments

reisub0 picture reisub0  路  39Comments