-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Regression from 2.0.0: icons shifted to the right #485
Comments
I found similar issue, Font:"MesloLGS NF", style:regular, size:9 in putty on Windows for symbol 'f43a' (clock). It's shifted right and right portion on the glyph is truncated. |
Same issue with Fira Code and Fira Code Mono, style=Regular, with every glyph and font size I tried to use. |
@umnyaga and @qenya Are your issues also related to I would need to install such a thing, I have the gut feeling that might be a In the fonts the glyphs are all left aligned. Maybe you can try the current This |
This is really unlikely. The wcwidth is just one 48-line file in C (so you can easily review it), and all it does is patch |
I saw the code and thought that can not be all 😬 So if I understand correctly I build the lib, point I would really appreciate a dummy howto reproduce. |
Not to the dir, but to the file - as shown in wcwidth's README: |
Text from screenshots to reproduce:
|
So, test command may be e.g. |
As for xterm - it's probably better to avoid it. :) The option you was looking for is |
Tnx for info, will check out tomorrow. |
Installed on Ubuntu Created resource file
Install some fonts
(Using italic font to see that I really get what I want) Running
If I switch to a size different from 12 (here 24): Some symbols vanish??! Whatever, the symbols are left aligned. ? |
Btw the 3270 name changed meanwhile, there is no Medium anymore...
|
Anyway, lets leave alone vim and it's patch (which is needed for large icons case).
P.S. Regular works mostly same way as Italic, except in case "2. Non-Mono font without wcwidth" there are much more missing icons:
|
BTW, is I'm doing something wrong trying to use Mono font with large icons (with wcwidth lib and vim patch required to make it work)? |
Still trying to reproduce. If I take the simplest image from here #485 (comment) That works and looks exactly the same. Note that we see identical icons not, mostly from the Icons leak into next cell as intended, unless next cell is empty-block thing But then, when I PRELOAD your lib (and it actually happens, see here:) what My
Further debugging shows that neither of the two functions in your library is ever called. Ok, builds and it DOES use your library. But now something with loading the fonts is amiss... At least they are detected as 2 cell wide now. Ah, obviously I need to use Hmm, maybe it uses the system-installed rxvt demon. |
|
And for the same reason it doesn't makes sense to set As for missing fonts - I've no idea, but it's unlikely urxvt issue, maybe |
It's also important to do final testing using Mono font built with wide icons, because it's an actual use case. |
Ah I guess I know... Yes. They are not right aligned, they are centered and some even extend into the next cell. Here, the heart The advance width is the box (which is one monospace width wide), but the visual width is of course wider. I guess what you need is the See also
Let me quickly check 'Fixed'. |
Hmm? |
I guess I do not get the meaning of In From the two fonts with 'wide' icons most clients need the 'I pretend to be monospaced' ( Obviously
|
Well, when the issue was reported (2.5 years ago) there was no "Propo" thing (or at least I don't remember it), but there was Mono font which can be compiled using two ways - one with non-wide but small icons, second with large but wide icons. So, I was talking about using Mono font in second way, as it was a couple of years ago. I don't tend to update fonts unless I get some annoying "missing icon" issue, so I'm still using D2Coding font patched using Nerd's Mono wide icons. Sounds like today I should learn how to patch D2Coding using modern Nerd's Propo to fix the issue? :) |
Yes, 2.5 years ago was just discussions about that and what the actual requirements are, what possible solutions could be etc. Somewhere I commented with a 'History' writeup that explains all the decisions with reasons then and in retrospect.
This will all come in
You can use the You just need to specify Edit: Actually link to the zip file |
Used docker way, looks like everything works. Thanks! |
BTW, |
Thanks for the feedback! Yes. Unfortunately I have no access rights for the docker account and I can just push new versions because Ryan put the key into this repo's secrets... I also have very few right here, that prevent some clean up. But maybe at some point Ryan will have a day or so and we resolve access issues. The (his) plan was to move the project to the https://github.com/nerdfonts organization, but ... sigh. The full |
This issue has been automatically locked since there has not been any recent activity (i.e. last half year) after it was closed. It helps our maintainers focus on the active issues. If you have found a problem that seems similar, please open a new issue, complete the issue template with all the details necessary to reproduce, and mention this issue as reference. |
🎯 Subject of the issue
Looks like there is a regression since 2.0.0: icons in 2.1.0 doesn't fit their boxes because they're shifted to the right.
🔧 Your Setup
Linux, urxvt with https://github.com/powerman/wcwidth-icons.
I'm using D2Coding font and initially noticed this issue while trying to use
font-patcher
to update to the latest version both font and icons. But I belive this issue affect all fonts - below screenshots use3270-Medium Nerd Font Complete.otf
downloaded from 1.2.0, 2.0.0 and 2.1.0 release archive.★ Optional
3270-Medium Nerd Font Complete.otf
version 1.2.0 (icons shifted left)3270-Medium Nerd Font Complete.otf
version 2.0.0 (icons at right position)3270-Medium Nerd Font Complete.otf
version 2.1.0 (icons shifted right)For mentioned above D2Coding results are the same: font-patcher from 2.0.0 produce correct font, from current master produce invalid font with icons shifted to the right.
The text was updated successfully, but these errors were encountered: