yatli / fvim

Cross platform Neovim front-end UI, built with F# + Avalonia
MIT License
1.34k stars 30 forks source link

guifont not applying neovim #213

Open ehsanghorbani190 opened 2 years ago

ehsanghorbani190 commented 2 years ago

im using neovim and i have this line in my init.vim : set guifont=Fira\ Code\ 16 it doesn't apply. i think it applied in first starts but now its not applying. should i create a gvim.init ? where? Update: When i use this syntax, it works some how: set guifont=Fira\ Code:h16 but it works only with this font , setting other fonts doesnt work properly, also setting :h16 makes font creepy, it seems that it makes font only taller and doesnt increase font size

ayehome commented 2 years ago

:set guifont=Fira\ Code:h16 I it works normally here, but I need to restart fvim occasionally. ginit.vim and init.vim together

yatli commented 2 years ago

Fira Code h16 looks like this on my side:

image

@ehsanghorbani190 what does your expected rendering look like?

yatli commented 2 years ago

Any updates?

ehsanghorbani190 commented 2 years ago

@yatli Hi :D sorry for replying so late, i was busy with university :( Sadly i moved to Goneovim and no longer use Fvim, But i'll try it again later :D

xarthurx commented 1 year ago

Only init.vim should work.

image

Moved from neovide to fvim here. It seems the font is rendered a bit shorter than it is in neovide or nvim-qt.

image

And the nerd-font in the statusline is not aligned.. tried differen't font settings, but none is working.

Any ideas?

yatli commented 1 year ago

@xarthurx FVimFontNoBuiltinSymbols v:true " Disable built-in Nerd font symbols

double-edge sword... 🙃

xarthurx commented 1 year ago

@yatli Thanks for the quick response. It seems when I have that settings enabled, the FVimFontLineHeight needs to be set to 0. Otherwise, still an issue:

image

image

This is a minor problem though. But probably you want to make the statusline not affected by this option.