You are not logged in.

#1 2012-02-23 19:21:28

eFFeeMMe
Member
Registered: 2009-04-10
Posts: 9

[Solved]Kerning messed up in urxvt, kinda clueless

Hi everyone. Installing Arch was a breeze, but I'm still having lots of trouble making it as fully-featured as the buntu I was coming from. I'm pretty spoiled. Anyway, my current concern is getting a nice-looking, readable terminal, but urxvt completely messes up the kerning of the font I want to use. As you can see in the screenshot, it works fine in leafpad.

http://i.imgur.com/uVIR6.png

Could anybody at least point me in the right direction for getting pleasant font rendering everywhere?

Last edited by eFFeeMMe (2012-02-23 23:03:41)

Offline

#2 2012-02-23 19:23:40

hesse
Member
Registered: 2011-12-08
Posts: 88

Re: [Solved]Kerning messed up in urxvt, kinda clueless

Post your ~/.Xresources file please?

Offline

#3 2012-02-23 19:41:34

eFFeeMMe
Member
Registered: 2009-04-10
Posts: 9

Re: [Solved]Kerning messed up in urxvt, kinda clueless

It's there in the screenshot smile

Offline

#4 2012-02-23 20:29:59

mr_echo
Member
Registered: 2005-03-28
Posts: 25

Re: [Solved]Kerning messed up in urxvt, kinda clueless

Try experimenting with letterSpace set to -1 or -2:

URxvt.letterSpace: -2

Offline

#5 2012-02-23 20:44:39

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [Solved]Kerning messed up in urxvt, kinda clueless

Doesn't look like a kerning issue to me. That looks like the font urxvt renders when the font string is broken (or the font is not loading/can't be found)...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#6 2012-02-23 20:45:02

bohoomil
Banned
Registered: 2010-09-04
Posts: 2,377
Website

Re: [Solved]Kerning messed up in urxvt, kinda clueless

Try re-running

fc-cache -f -v

and check a different mono spaced font to see if it works correctly. One more thing: I've always used 'Anonymous Pro' without a hyphen (run fc-list | grep Anonymous just in case...).

This kind of mess usually means that the font params are not read / set / accessed correctly. For other applications everything may be correct, but rxvt-unicode is kind of a... capricious. smile On a fresh system I struggled some time with VL Gothic and one day, like a bolt from the blue, the font face appeared correctly on the screen.

Last edited by bohoomil (2012-02-23 23:59:59)


:: Registered Linux User No. 223384

:: github
:: infinality-bundle+fonts: good looking fonts made easy

Offline

#7 2012-02-23 21:09:29

rockin turtle
Member
From: Montana, USA
Registered: 2009-10-22
Posts: 227

Re: [Solved]Kerning messed up in urxvt, kinda clueless

Just the other day I was trying to set the default font in urxvt and got the same results you are seeing.

My problem (I think) was due to running urxvt in daemon mode.  It seems that if you start the urxvtd daemon, it will set the font according to .Xdefaults/.Xresouces but then you will have trouble resetting the font on each invocation of urxvtc.

I was finally able to set the font I wanted.

Offline

#8 2012-02-23 23:03:21

eFFeeMMe
Member
Registered: 2009-04-10
Posts: 9

Re: [Solved]Kerning messed up in urxvt, kinda clueless

Fixed! It doesn't look as I mean it to, yet, but I'll just have to play with fontconfig parameters and hope those work, I guess.

My .Xresources file is now these two lines:
URxvt.scrollBar: off
URxvt.font: xft:Anonymous Pro:size=14

Thanks for all your help, the problem was that I got the font name wrong and didn't realize it because URxvt's backup font looked like a badly rendered version of the one I was going for. Again, thanks. smile

Offline

Board footer

Powered by FluxBB