equalsraf / neovim-qt

Neovim client library and GUI, in Qt5.
https://github.com/equalsraf/neovim-qt/wiki
ISC License
1.85k stars 171 forks source link

Cannot Set Fallback Font Using `:set guifontwide` #950

Closed floaterest closed 2 years ago

floaterest commented 2 years ago

Issue

I want to set a fallback font for non-latin languages (in my case, Japanese). I tried the suggested solution in #827 and #832, but it did not work (as shown in demo):

Steps to Reproduce

  1. start nvim-qt with empty config: nvim-qt -- -u NONE
  2. type something in English and in wide characters
    This is an example in English
    これは日本語のサンプルです
  3. call :GuiFont! monospace to set the font
  4. call :set gfw=Noto\ Sans\ JP to set the font for wide characters

Result: nothing changes for the wide characters

Demonstration

gif

The gif above shows that

Version

nvim-qt version: v0.2.16.1 (newest) neovim version: 0.6.0 (newest)

jgehrig commented 2 years ago

@Floaterest

The option guifontwide is not available in v0.2.16.1, you would need to update to a build from master.

I'm behind on doing a release...

Marking as closed. Feel free to keep commenting if you have questions.

floaterest commented 2 years ago

Sorry, I didn't realise the builds from AppVeyor.

jgehrig commented 2 years ago

No need to apologize! This was not obvious :)

I'm behind on generating a release (there are a few bugs I would like to address)....

I'm glad you found the AppVeyor builds. Builds are also available on GitHub Actions (Linux, Windows, Mac).

bosbyj commented 2 years ago

Someone from other corner of the world is also waiting for :set guifontwide Greetings!

floaterest commented 2 years ago

@bosbyj no need to wait, you can find the newest build on AppVeyor (details instructions are on the wiki from this repo)