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
Missing 1px line at the top of upper-left and upper-right triangles #1629
Comments
Hmm, all the glyphs are on vertical coordinate 1027: But I can see the problem with Tilix and Delugia Regular 🤔 Ah, this is Delugia 2111.01.2, let me try something more up to date... Hmm. The other two triangular things are also too low, but that is less obvious. |
Ah, forgot to mention: This is for LCD and monochrome subpixel rendering. Not for 'none' of course. So probably some rounding error. |
@Finii thanks for the additional testing! Also, note that there is a faint vertical line between the block and the triangles, even the lower-left and lower-right ones (even though these last two don't have the "missing" 1px line above them). Same goes for the "flame" glyphs (E0C0 and E0C2). |
I believe they are all a fraction of a pixel too low... See the half-round thing is different top and bottom. Ah, hinting... detail view of the theoretical shape and how it is rendered to pixel shades: The vertical lines have a known reason and a possible fix. That fix is employed only at the moment to some (most common) Powerline glyphs and will be expanded to all if there are no negative side effects; in principle the fix can break the glyphs for other clients 😬 But so far it seems to be good (no complains yet). |
Just wanted to mention that I can imagine that we might not be able to fix that at all - because it is technically impossible to fix. Meanwhile you can try to change your font size and see if that makes the effect bigger or smaller. I guess the effect is size depended. The technical problem is that the 'full rectangle' against what we compare is no glyph at all, but just a colored blank. As there is no outline it follows other rules in the font rendering process... |
Got it, thanks for the explanation! Nice to hear that the vertical line might be fixed after all, looking forward to it. I tried increasing the font size, but the problem kept creeping up 😞 If there was a glyph for the full rectangle, do you think this could maybe guarantee proper alignment? (we would still depend on nvim, tmux etc. also using it, but theoretically this is configurable) |
There is FULL BLOCK at
I guess that can mean that for some sizes the problem got smaller? |
Yes, that's the missing hinting, which would prevent greyscale filling of specified pixel-ranges. |
I understand... well, hopefully something will come up, let's give it some time 🤞 Anyway, I appreciate all the effort so far 👏 |
🗹 Requirements
🎯 Subject of the issue
Experienced behavior:
When
nf-ple-upper_left_triangle
ornf-ple-upper_right_triangle
are placed right next to a block glyph (eg. nvim and tmux status lines) there is a 1px difference at the top of the triangles. In fact, when we magnify the image, we can see that it's not that the the upper line is missing, there seems to be some anti-aliasing effect (see screenshot below).Expected behavior:
Glyphs should be perfectly aligned.
Example symbols:
█
🔧 Your Setup
Anonymice Powerline Nerd Font Complete.ttf
)?JetBrainsMonoNL Nerd Font Regular
iterm2
,urxvt
,gnome
,konsole
)?GNOME Console
, but also reproducible onGNOME Terminal
★ Screenshots (Optional)
nvim status bar:
tmux status bar:
Magnified:
The text was updated successfully, but these errors were encountered: