You are not logged in.
This probably is not the best title, but it's the only thing that summarizes the issue I'm having:
In rxvt-unicode (I'm using the patched version from AUR but I also confirmed it with the non-patched version from the repo's) the right ] looks sharper than the left [. With curly brackets, this is reversed: the left { looks sharped than the right }. To clarify, here's a scrot: (it's best noticed with the colored brackets in the prompt)
I think this is very annoying so I would like to know if some of you have it too and if there's anything I can do about this, except switch to non-xft fonts.
Last edited by Unia (2012-08-01 18:20:42)
If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres
Offline
I know you said you don't want to change to non-xft fonts (though I'm not sure why), but have you tried other xft fonts? Have you tried the same font and font size in some other program (a gui text editor perhaps)? I don't see how urxvt could affect this and I suspect this is just the font.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
It's possibly the anti-aliasing or hinting that's bothersome to you. When I magnify the linked png image, using xmag (extra/xorg-xmag), there's a noticeable difference in pixel patterns between left and right brackets, particularly the square brackets. Different font sizes can have different hinting schemes which makes it difficult to tweak settings to what you want.
I'm using 'xft:DejaVu Sans Mono:style=Book:size=8' for regular, italic, bold and bold italic font faces in urxvt. I distinguish the typographic emphasis by setting different colors instead of using different font faces. Yes, it's small.
Offline
I know you said you don't want to change to non-xft fonts (though I'm not sure why), but have you tried other xft fonts? Have you tried the same font and font size in some other program (a gui text editor perhaps)? I don't see how urxvt could affect this and I suspect this is just the font.
I like the 'normal' fonts more, they give my laptop a more 'modern' look than having for example, a blocky/pizely terminus or fixed. The only non-xft font I can work with is Ohsnap. I have tried different fonts: Ubuntu, Ubuntu Mono, DeJavu Sans Mono, Droid Sans Mono.... they all have the same issue with the square and curly brackets so that's why I figured it was URxvt - the fonts work normal in other GUI applications such as Thunar and LXappearance. I even rebuild DWM and have two tags named [ and ] to see if it's in there too (I have the XFT patch running) and it's also normal in there.
It's possibly the anti-aliasing or hinting that's bothersome to you. When I magnify the linked png image, using xmag (extra/xorg-xmag), there's a noticeable difference in pixel patterns between left and right brackets, particularly the square brackets. Different font sizes can have different hinting schemes which makes it difficult to tweak settings to what you want.
You want http://ompldr.org/tZXh1OQ. You have http://ompldr.org/tZXh1YQ.
I'm using 'xft:DejaVu Sans Mono:style=Book:size=8' for regular, italic, bold and bold italic font faces in urxvt. I distinguish the typographic emphasis by setting different colors instead of using different font faces. Yes, it's small.
Nice tip on xorg-xmag! Indeed when I move my ~/.fontconfig and ~/.fonts.conf to some other name, it does start to look better so I guess it's related with my font settings. I had always wanted to configure that mess but never got myself to do it. Seems like I got my reason now. Could you please share your font config settings so I can see if it's working on my laptop with your settings? You don't seem to have this issue.
Last edited by Unia (2012-08-01 09:11:19)
If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres
Offline
Could you please share your font config settings so I can see if it's working on my laptop with your settings? You don't seem to have this issue.
I don't really have any special fontconfig settings. I'm using the plain vanilla fontconfig package, with an nvidia driver on a 5-year-old HP 17-inch desktop monitor.
$ ls /etc/fonts/conf.d/
20-fix-globaladvance.conf 30-urw-aliases.conf 57-dejavu-sans-mono.conf 69-unifont.conf
20-unhint-small-dejavu-sans-mono.conf 39-no-calibri.conf 57-dejavu-sans.conf 70-yes-bitmaps.conf
20-unhint-small-dejavu-sans.conf 40-nonlatin.conf 57-dejavu-serif.conf 80-delicious.conf
20-unhint-small-dejavu-serif.conf 45-latin.conf 60-latin.conf 85-wqy-bitmapsong.conf
20-unhint-small-vera.conf 49-sansserif.conf 65-fonts-persian.conf 90-synthetic.conf
29-replace-bitmap-fonts.conf 50-user.conf 65-nonlatin.conf README
30-metric-aliases.conf 51-local.conf 65-wqy-zenhei.confI've disabled Calibri with my own '39-no-calibri.conf' – I don't want to spend the time to fix its display on web pages. The font configuration files I use that are not owned by fontconfig are owned by the packages ttf-dejavu, wqy-zenhei, and wqy-bitmapfont.
The only tweaks I have in ~/.fonts.conf are to use fonts I've purchased instead of the default Helvetica and Palatino fonts (URW Palladio is ugly).
Offline
Hm oke, thanks. I will play around with fontconfig sooner or later, but for now I have reverted to using non-xft fonts (Ohsnap)
If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres
Offline