Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Neoray cannot load the font. #30

Closed
ishan9299 opened this issue Dec 1, 2021 · 4 comments
Closed

Neoray cannot load the font. #30

ishan9299 opened this issue Dec 1, 2021 · 4 comments

Comments

@ishan9299
Copy link
Contributor

Please complete the following information:

  • OS or distro: Windows 11
  • neoray version: 0.1.1

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
Copy link
Owner

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
Copy link
Contributor Author

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
Copy link
Owner

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
Copy link
Contributor Author

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 🤮.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants