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

Wrong symbol render #369

Open
EpsilonKu opened this issue Jun 16, 2022 · 14 comments
Open

Wrong symbol render #369

EpsilonKu opened this issue Jun 16, 2022 · 14 comments

Comments

@EpsilonKu
Copy link

EpsilonKu commented Jun 16, 2022

Both Goneovim and Kitty has same font (Cascadia Code).
Goneovim:
gscreenshot_2022-06-16-050511

Kitty:
gscreenshot_2022-06-16-050523

@akiyosi
Copy link
Owner

akiyosi commented Jun 16, 2022

Hi,
Could you please give me the actual content data written on the buffer in your image?

@EpsilonKu
Copy link
Author

EpsilonKu commented Jun 17, 2022

'⠀             ⠀⠀⣀⠀⠀⠀⠀⠀⠀⠀⢸⣿⣿⣷⣶⣦⣤⣀⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀',
'⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣶⣦⢸⠛⠀⠀⠀⣀⣴⠞⠀⢸⣿⣿⣟⠻⠿⢿⣿⣿⣿⣶⣤⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀',
'⠀⠀⠀⠀⠀    ⠀⠀⠀⢀⡾⠁⢻⣠⣤⣶⠿⠛⠁⠀⣠⠌⠻⣿⣿⣷⣄⠀⠀⠉⠛⠿⣿⣿⣷⣤⡀⠀⠀⠀⠀⠀⠀⠀⠀',
'⠀⠀⠀⠀⠀⠀⠀⠀⡀⣤⠤⢖⣫⣴⣶⡿⠿⠋⠀⣀⣤⣶⠟⠁⢠⡄⠈⠻⣿⣿⣷⣄⠀⠀⠀⠀⠉⠻⣿⣿⣦⡀⠀⠀⠀⠀⠀ ',
'⠀⠀⠀⠀ ⠀⠀⢀⣠⣴⣾⡿⠟⠋⢁⣠⣤⣶⡿⠟⠉⠀⠀⣰⣿⣿⡀⠀⠈⠻⣿⣿⣷⣄⠀⠀⠀⠀⠀⠈⠻⠀⣄⠀⠀⠀⠀⠀',
'⠀⠀⠀⠀⢀⣠⣶⣿⠟⠋⢁⣠⣴⣾⡿⠟⠋⠁⠀⠀⠀⡀⠀⠈⣿⣿⣇⠀⠀⠀⠀⠹⣿⣿⣆⠀⠀⠀⠀⠀⠀⠸⣿⣷⡄⠀⠀⠀',
'⠀⠀⢀⣴⡿⠛⠉⣀⣴⣾⡿⠟⠋⠁⠀⠀⠀⠀⠀⢀⣼⣿⡄⢸⣿⣿⣿⠀⠀⠀⠀⠀⠈⠻⣿⣧⠀⠀⠀⠀⠀⠀⠈⢻⣿⡄⠀⠀',
'⠀⣰⠟⠋⢀⣴⣾⠿⠛⠉⠀⠀⠀⠀⣸⣷⣶⣶⣶⣿⣿⢻⣿⣸⣿⣿⠈⠀⠀⠀⠀⠀⠀⠀⠹⣿⡇⠀⠀⢀⣶⡀⠀⠀⢻⣿⡆⠀',
'⠀⠁⠀⢰⠿⠛⠁⢀⣾⢿⣷⠀⠀⠀⠻⢿⣿⣿⡿⠛⠁⠀⢿⣿⣿⣿⠀⠀⠀⠀⠀⠀⠀⠀⠀⢹⣷⠀⢀⣾⣿⣿⡄⠀⠀⢻⣿ ',
'⠀⠀⠀⠀ ⠀⠀⠘⢿⣿⣿⡀⠀⠀⠀⠀⠙⢿⣧⠀⠀⠀⠸⣿⣿⣿⠀⠀⠀⠀⠀⠀⠀⠀⠀⣾⡏⢠⣿⡏⢿⣿⣿⡄⠀⠀⣿⡇ ',
'⠀⠀⠀⠀⠀⠀⠀⣠⡾⠋⢹⠇⠀⠀⠀⠀⣠⣿⠇⠀⠀⠀⠀⢻⣿⣿⡀⠀⠀⠀⠀⠀⣀⣤⣾⡿⠁⣿⣿⡇⠈⢿⣿⣷⠀⠀⢹⣿ ',
'⡀⠀⠀⠀⣠⣴⠿⠋⠀⢠⠏⠀⠀⠀⢀⣴⣿⠏⠀⣴⣶⣦⠀⢸⣿⣿⣿⣿⣶⣶⣾⣿⣿⣿⠟⠁⠀⣿⣿⡇⠀⠈⣿⣿⡇⠀⠘⣿ "',
'⡇⠀⠀⠉⠉⠀⠀⠀⠀⢿⣿⠃⢀⣴⣿⡟⠁⠀⠀⠻⠿⠟⠀⢸⣿⣿⠙⠛⠿⠿⠿⠛⠋⠁⠀⠀⠀⣿⣿⡇⠀⠀⢹⣿⣷⠀⠀⣿⠂',
'⣿⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣴⣿⡿⠋⠀⠀⠀⠀⠀⠀⠀⠀⢸⣿⣿⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢻⣿⡇⠀⠀⠀⣿⣿⠀⢀⣿',
'⢻⡄⠀⠀⠀⠀⠀⠀⢀⣴⣿⣿⠟⠁⠀⠀⠀⠀⠀⠀⢰⣧⠀⠀⣿⣿⠀⠀⠀⠀⠀⣠⣾⠀⠀⠀⠀⢸⣿⡇⠀⠀⠀⢿⣿⠀⢸⡟',
'⠘⣿⣄⣀⣀⣠⣤⣾⣿⣿⠟⠁⠀⠀⢀⣴⣾⣿⠁⠀⠀⣿⠀⠀⣿⣿⠀⠀⠀⠀⢸⣿⡟⠀⠀⠀⠀⢸⣿⡇⠀⠀⠀⣸⣿⠀⣾⠇',
'⠀⠙⣿⣿⣿⣿⣿⡿⠛⠁⢸⡿⠀⢠⣾⣿⣿⡇⠀⠀⠀⡟⠀⠀⣿⣿⠀⠀⠀⠀⢸⣿⡇⠀⠀⣄⠀⢸⣿⡇⠀⠀⠀⣿⡇⢠⡟ ',
' ⠀⠀⠉⠉⠉⢸⡆⢀⡤⠞⠀⢀⣿⡟⢡⣿⠁⠀⣤⠀⣄⢰⡆⣿⣿⠀⠀⠀⠀⣾⣿⠀⠀⠀⡹⠀⠈⣿⡇⠀⠀⢰⣿⢁⡟⠁⠀',
'⠀⠀⠀⢰⡆⠀⠘⣇⠀⠀⠀⠀⣼⡿⠀⢸⣿⠀⠀⢻⣤⣿⣼⠇⣿⣿⠀⠀⠀⠀⣿⣿⠀⠀⣠⠁⠀⢀⣿⡇⠀⠀⣾⢃⡾⠁⠀⠀',
'⠀ ⠀⠈⠓⣦⠀⣿⡀⠀⠀⢠⣿⠇⠀⢸⣿⠀⠀⠈⠉⠀⠁⠀⣿⣿⠀⠀⠀⢸⣿⣿⠀⠀⢷⠇⠀⢸⣿⡇⠀⣼⢏⠞⠀⠀⠀⠀',
'⠀⠀⠀⠀⠀⠀⠀⢹⣧⣀⣠⣾⣿⠀⠀⢸⣿⠀⠀⠀⠀⠀⠀⠀⣿⡇⠀⠀⢀⣼⢿⣿⠀⠀⠀⠀⠀⣼⡿⢀⣼⠋⠀⠀⠀⠀  ',
'⠀⠀⠀⠀⠀⠀⠀⠀⢻⣿⣿⣿⠇⠀⠀⠘⣿⣇⠀⠀⠀⠀⠀⠀⡿⠁⢀⣴⣿⠏⠸⣿⣷⣤⣤⣴⣾⡿⣣⠞⠁⠀⠀⠀⠀⠀⠀⠀',
'⠀⠀⠀ ⠀⠀⠀⠀⠀⠉⠉⠥⣤⡿⠴⠆⢻⣿⣷⣤⣀⣀⣀⣤⣵⣾⣿⡿⠁⠀⠀⠹⢿⣿⣿⠿⠋⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀',
'⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠙⢿⣿⣿⣿⣿⣿⡿⠛⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀',
'⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠉⠉⠛⠉⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀',

It's symbols of Braille. https://www.wikiwand.com/en/Braille.
Cascadia Code symbols are like in kitty. More on https://superuser.com/questions/1717540/unicode-character-is-invisible-on-windows-but-shows-up-on-linux

@akiyosi
Copy link
Owner

akiyosi commented Jun 17, 2022

@EpsilonKu
Thank you.
Ummm, But I can't reproduce the problem.

My reproduction steps are as follows:

  1. start goenovim.
  2. execute :set guifont=Cascadia_Code:h14
  3. copy the content you provided
  4. paste it into the buffer of goneovim with "*p.

2022-06-17 22 17 33

@EpsilonKu
Copy link
Author

It seems like because of Nerd Fonts problem. I used Nerd version of Cascadia. Is it possible to choose Secondary Fonts?

@akiyosi
Copy link
Owner

akiyosi commented Jun 18, 2022

@EpsilonKu
Thanks for additional info!
But, I can't reproduce the problem with Nerd Font patched font.

  1. start goenovim.
  2. execute :set guifont=CaskaydiaCove_Nerd_Font_Mono:h14
  3. copy the content you provided
  4. paste it into the buffer of goneovim with "*p.

2022-06-18 11 58 42

@MuhammedZakir
Copy link

  1. Is the guifont GoNoevim using the correct one?
  2. Have you tried starting GoNeovim with -u None? And then set guifont.

@EpsilonKu
Copy link
Author

  1. Is the guifont GoNoevim using the correct one?

    1. Have you tried starting GoNeovim with -u None? And then set guifont.
  1. it show guifont= when I run :set guifont?
  2. it doesn't even run with this command.

@EpsilonKu
Copy link
Author

Kitty is rendering missing symbols with DejaVu Sans Mono. It seems like Goneovim also rendering with another font missing symbols.

@MuhammedZakir
Copy link

MuhammedZakir commented Jun 19, 2022

  1. it doesn't even run with this command.

Sorry, it was -u NONE. Regardless, it won't work because of forking (see #372).

  1. it show guifont= when I run :set guifont?

Kitty is rendering missing symbols with DejaVu Sans Mono. It seems like Goneovim also rendering with another font missing symbols.

The problem is solved if you set guifont to the correct font in Neovim config. But I think it would be nice if GoNeovim uses fontconfig for font fallback.

@EpsilonKu
Copy link
Author

Yeah, it solves if I set correct font. If you think Goneovim doesn't need config for font fallback, it's best to close issue.

@EpsilonKu
Copy link
Author

A little bit off-topic. How to fix this?I changed all Fonts and it didn't help.
gscreenshot_2022-06-19-030611

@MuhammedZakir
Copy link

A little bit off-topic. How to fix this?I changed all Fonts and it didn't help.
gscreenshot_2022-06-19-030611

The pencil symbol? That looks like a part of statusline/tabline? If so, you should look into the configuration of that. Anyway, it's better to open a new discussion for this.

@akiyosi
Copy link
Owner

akiyosi commented Jun 19, 2022

@EpsilonKu @MuhammedZakir
Thanks for this discussion.
My future plans include implementing a per glyph font fallback feature.

@Finii
Copy link

Finii commented Sep 7, 2022

It seems like because of Nerd Fonts problem. I used Nerd version of Cascadia. Is it possible to choose Secondary Fonts?

Nerd Font's Cascadia does not include braille glyphs, the mentioned PR above is to ADD it.

I guess braille support will come in Nerd Fonts 2.3.0.

The original problem above ... the glyphs must come from a fallback 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

4 participants