hismailbulut / Neoray

Simple and lightweight GUI client for Neovim
MIT License
146 stars 5 forks source link

Neoray cannot load the font. #30

Closed ishan9299 closed 2 years ago

ishan9299 commented 2 years ago

Please complete the following information:

Describe the bug neoray cannot find the font 'Iosevka Slab:h16'. This is the same guifont I use in neovim-qt and fvim.

Steps to reproduce

Your neoray config in init.vim (Only the part that concerns neoray!)

Crash log if available (may be generated by neoray after crash)

Debug output (you can generate starting neoray with --verbose option)

hismailbulut commented 2 years ago

Try file name of the font. For example you have 4 files with names:

Losevka_Regular.ttf
Losevka_Bold.ttf
Losevka_Italic.ttf
Losevka_BoldItalic.ttf

In this situationt setting guifont to Losevka will be fine.

set guifont=Losevka:h16

Let me know if this not help you.

ishan9299 commented 2 years ago

I installed a different variant of Iosevka font because I wasn't sure if previous one was ttf or not. I installed "Iosevka Term Curly Slab". In the control panel fonts section (where you can see all the installed fonts in windows) the Font name is "Iosevka Term Curly Slab". When type the command set guifont=Iosevka\ Term\ Curly\ Slab:h10 it shows the error font not found.

hismailbulut commented 2 years ago

Sorry for late response. You have to look file name of the font not family name. You can find most of your fonts in Windows\Fonts folder or somewhere in Appdata

ishan9299 commented 2 years ago

Ok found it. It works I'd suggest you give the path C:\Users\%USERNAME%\AppData\Local\Microsoft\Windows\Fonts in Readme to check the font name. Now I know for some reason windows has 2 different names for same font 🤮.