hismailbulut / Neoray

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

chinaese can not display #32

Closed obmutescences closed 2 years ago

obmutescences commented 2 years ago

Please complete the following information:

Describe the bug can not display chinaese

init.vim if exists('g:neoray') set guifont=Ubuntu\ Mono:h13 NeoraySet CursorAnimTime 0.05 NeoraySet Transparency 1 NeoraySet TargetTPS 60 NeoraySet ContextMenuOn TRUE NeoraySet BoxDrawingOn TRUE endif

obmutescences commented 2 years ago

QQ20220324-101223

hismailbulut commented 2 years ago

image I don't know anything about Chinese but I was able to display a Chinese text using NotoSansSC font. But there is still a problem with the spacing of the characters. Since I'm very busy these days, I took a break from development, but I can check this soon.

obmutescences commented 2 years ago

image I don't know anything about Chinese but I was able to display a Chinese text using NotoSansSC font. But there is still a problem with the spacing of the characters. Since I'm very busy these days, I took a break from development, but I can check this soon.

thanks for check. maybe is my font problem or character issue.

paopaol commented 2 years ago

the same problem. but nvim-qt works fine.my font is Fira Code

hismailbulut commented 2 years ago

Fira Code doesn't support Chinese characters. Nvim-qt works because it uses system default chinese font for displaying characters. Neoray has no support for this. In order to work with Chinese text, you need a font must be both monospaced and must support Chinese characters and I couldn't find any font like this until now.

paopaol commented 2 years ago

but i was used neovide too, it also works fine

hismailbulut commented 2 years ago

It seems like neovide's default font has Chinese characters. I can't pack default font with Chinese because it's increases the binary size a lot. Currently I am working on a new renderer and I can look into this after it's done.