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

not all char from nerd font loaded correctly #256

Open
xarthurx opened this issue Jun 14, 2023 · 4 comments
Open

not all char from nerd font loaded correctly #256

xarthurx opened this issue Jun 14, 2023 · 4 comments

Comments

@xarthurx
Copy link

FVIM:
image

Terminal:
image

nvim-qt:
image

As you can see above, the "arrow" char is not shown correctly in FVIM.
(nvim-qt is not using the nerd version, you can see from the status bar, but still show this char correctly)

Terminal version nvim shows everything correctly.

@WillEhrendreich
Copy link
Contributor

I think this has to do with nerd font changing the layout in version 3... or something.

@xarthurx
Copy link
Author

xarthurx commented Aug 3, 2023

Additional info here:

image

@WillEhrendreich
Copy link
Contributor

the "mapping" of the nerdfonts is done incorrectly, because of a breaking change from nerd font.

ryanoasis/nerd-fonts#1059
ryanoasis/nerd-fonts#365

any nerd font 3.0 or greater it seems is unable to work, fvim is pointing to the wrong place for the icons.

you'll see it working if you change your font to an old version of iosevka nf, like the one included in the repo.

I have also created an issue, and tagged @yatli, however he seems likely to be busy and possibly unable to help, as I've gotten no response. I can't imagine how hard it must be to support a bunch of users for free on the internet, so I completely understand that it is likely just out of scope for him to jump at every issue. Open source is just hard it seems, for both the contributors and the users at times.

I know he has and still does accept pr's from time to time. Maybe we as the fvim community can come to the rescue here!

So, I don't know if it is relevant, but someone wrote this python script to do some sort of conversion, but I'm not sure how it interacts with something like fvim. It may be helpful so, I'm linking it here:

https://gist.github.com/mischw/78e8e42c2ebb1069560a2fc4573b1425

This is the last commit that dealt with this sort of thing that I can see, so perhaps this gives us enough information to create a pr?

2dc1579

I think this is the most relevant part.. as I don't think the txt file is referenced explicitly, or, at least I would guess that yatli would write this as type safe as possible, instead, as keeping super type safe is kinda the fsharp mindset.

fvim/wcwidth.fs

Line 499 in 2dc1579

let NerdFont = [|

@xarthurx
Copy link
Author

xarthurx commented Aug 4, 2023

the "mapping" of the nerdfonts is done incorrectly, because of a breaking change from nerd font.

ryanoasis/nerd-fonts#1059 ryanoasis/nerd-fonts#365

any nerd font 3.0 or greater it seems is unable to work, fvim is pointing to the wrong place for the icons.

you'll see it working if you change your font to an old version of iosevka nf, like the one included in the repo.

I have also created an issue, and tagged @yatli, however he seems likely to be busy and possibly unable to help, as I've gotten no response. I can't imagine how hard it must be to support a bunch of users for free on the internet, so I completely understand that it is likely just out of scope for him to jump at every issue. Open source is just hard it seems, for both the contributors and the users at times.

I know he has and still does accept pr's from time to time. Maybe we as the fvim community can come to the rescue here!

So, I don't know if it is relevant, but someone wrote this python script to do some sort of conversion, but I'm not sure how it interacts with something like fvim. It may be helpful so, I'm linking it here:

https://gist.github.com/mischw/78e8e42c2ebb1069560a2fc4573b1425

This is the last commit that dealt with this sort of thing that I can see, so perhaps this gives us enough information to create a pr?

2dc1579

I think this is the most relevant part.. as I don't think the txt file is referenced explicitly, or, at least I would guess that yatli would write this as type safe as possible, instead, as keeping super type safe is kinda the fsharp mindset.

fvim/wcwidth.fs

Line 499 in 2dc1579

let NerdFont = [|

This should be helpful to fix this issue.
It is a bit unfortunate that I know nothing about F#... Seems we can only hope @yatli can have time for this at some point.

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