You are not logged in.
My zsh prompt contains two unicode symbols: ● and ❯. These two symbols display perfectly in Chromium, but in urxvt they do not render properly. The font is Ubuntu Mono Derivative Powerline.
The first problem is the jagged edges, which I expected would be fixed with antialising and/or hinting. I have enabled these in .Xdefaults as well as /etc/fonts/conf.d, but there is still pixelation on the edges of these characters.
The second problem is that the circle symbol does not render as a circle at smaller font sizes. The attached screenshot shows the same text at pizelsize=14 and pixelsize=24 (set in .Xdefaults). In the first example, the symbol is clearly the wrong shape, but at 24px it seems okay. I'm not sure what could cause a font to completely misrender characters like that.
Some things I've tried:
changing to a non-powerline font
changing to a different font family
changing DPI in xrandr
enabling antialiasing and hinting
Interestingly, if I put an invalid font name in my .Xdefaults, the symbols render fine and there is no aliasing. So whatever font it falls back to doesn't have these issues.
Could I get some guidance from someone? Thanks.
Offline
Link to the font?
If you make the font *really* HUUUUGE, do the dots still grow with it?
Offline
.Xresources ?
Please vote for all the AUR packages you're using. You can mass-vote for all of them by doing: "pacman -Qqm | xargs aurvote -v" (make sure to run "aurvote --configure" first)
Offline
Link to the font?
https://github.com/powerline/fonts/tree … UbuntuMono
Same issue with other fonts though.
Yes, the dots grow with font size. At 24px they seem rougly circular. Here is another screenshot with pixelheight 64, 128 and 256: https://i.imgur.com/PrRw5ws.png.
.Xresources ?
The alternative to .Xdefaults. See https://superuser.com/questions/243914/ … -xdefaults.
Offline
Batou wrote:.Xresources ?
The alternative to .Xdefaults. See https://superuser.com/questions/243914/ … -xdefaults.
He knows what it is, he is asking to see it...
Offline
The font doesn't provide that glyph (u+25cf), so it's substituted from somewhere.
strace/grep urxvt to see which other fonts are loaded.
Offline
Thanks for the replies, I worked it out. Here's some information (mostly for my own records):
As I suspected, when I used gucharmap to inspect Ubuntu Mono, those unicode positions are empty. I assumed that since the glyphs were being rendered, they were part of the font. I didn't specify a fallback font in Xresources, so I'm surprised they rendered at all. Still not sure how this works. I think there was a preset in /etc/fonts/conf.d which was providing the bad glyphs, but I had so many that I'm not sure which one. It seems there are two ways around it:
- copy in the glyphs from another font and recompile the ttf file (would be broken by AUR updates)
- add a fallback font in .Xresources
I tried both but ended up going with the second. Turns out I only had one font installed which rendered the glyphs properly, which was Free Serif.
Offline