You are not logged in.

#1 2012-05-14 14:54:29

kelnoky
Member
Registered: 2007-11-20
Posts: 135

Fonts messed up in urxvt

I recently installed the -infinality patch from aur for truetype fonts. I have read good things about it and it looked awesome in screenshots. Now my fonts in Skype or Claws-Mail look much better - yay. However, urxvt is completely fucked up.

http://ompldr.org/vZHFzaA <-- This is weechat/ncmpcpp after a reboot, this is my .Xresources: http://pastie.org/3910225

Not only are is the font in the screenshot spaced too widely, it's not even terminus, like it should be. I tried lots of different fonts (like you can see in my .Xresources) and of course always xrdb -merged the file before trying, I can only change the size of the font, not the ugliness. This is my ~/.fonts.conf if it matters: http://pastie.org/3910241

Help? big_smile

Offline

#2 2012-05-14 15:42:33

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,456
Website

Re: Fonts messed up in urxvt

That font looks like the odd default fallback of urxvt if the font name provided can't be matched.

Did you rebuild your font cache after installing terminus?

EDIT: Deleted some irrelevancies since I am still learning to NOT read commented out lines of files.

Last edited by Trilby (2012-05-14 15:45:07)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2012-05-14 16:01:01

jgreen1tc
Member
From: St. Louis
Registered: 2011-05-16
Posts: 251

Re: Fonts messed up in urxvt

Looks kind of like this

There was an ugly patch to this that would mash the letters back together but you could still tell that it was janky.

Offline

#4 2012-05-14 16:07:10

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,456
Website

Re: Fonts messed up in urxvt

I know what it looks like ... I've had the very same result many times.  It is either due to the font not being in the font path, or the font cache not being rebuilt after it has been added to the path.

Edit:

wiki wrote:

Some fonts like terminus are installed in /usr/share/fonts/local, which is not added to the font path by default. By adding the following lines to ~/.xinitrc

xset +fp /usr/share/fonts/local
xset fp rehash

Last edited by Trilby (2012-05-14 16:11:01)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#5 2012-05-14 23:31:01

kelnoky
Member
Registered: 2007-11-20
Posts: 135

Re: Fonts messed up in urxvt

@Trilby
Yes, the font cache is updated at the end of the installation of terminus automatically. And I just did it manually to be on the safe side, to no effect sadly. I have also tried the xset commands and that doesnt work either I'm afraid.

Offline

#6 2012-05-14 23:40:35

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,456
Website

Re: Fonts messed up in urxvt

First, sorry if I sounded odd, I was confused about who was who and I didn't realize there were three people in this thread.

Kelnoky, did you do the xset FIRST, then rehash right after, then merge your xresources all in the same shell session?


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#7 2012-05-15 09:45:21

kelnoky
Member
Registered: 2007-11-20
Posts: 135

Re: Fonts messed up in urxvt

Well, I opened a terminal, did both the xset commands in their order, merged ~/.Xresources and started a new terminal to see if it had any effect - nothing. I also tried setfont in the same terminal I did the xset commands in, and I get:

┌─[ 11:41 ][ revolution:~ ]
└─> setfont /usr/share/fonts/TTF/DejaVuSansMono.ttf
Couldn't get a file descriptor referring to the console


Oh btw - xterm accepts different fonts just fine.

edit: And now I switched to "URxvt*font: xft:DejaVu Sans Mono:pixelsize=12:antialias=true:hinting=true" again, which is what I had before I tried infinality and what I had when the fonts messed up for the first time - and it works. So I guess the xset commands must have worked for that font at least, just terminus won't do its thing.

Last edited by kelnoky (2012-05-15 10:48:51)

Offline

#8 2012-05-15 09:50:37

Grinch
Member
Registered: 2010-11-07
Posts: 265

Re: Fonts messed up in urxvt

Hmm I recall having the same problem with urxvt a while back (letter spacing) and I solved it with adding this: 'URxvt.letterSpace: -1' to my .Xresources

Offline

#9 2012-05-15 13:20:49

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,456
Website

Re: Fonts messed up in urxvt

Does pacman -Ql terminus-font show various "terXXX" files in /usr/share/fonts/local?


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#10 2012-05-15 14:25:25

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

Re: Fonts messed up in urxvt

If you are not using a ttf version of Terminus font, this one will not work:

URxvt.font: xft:terminus:size=9
URxvt.boldfont: xft:terminus:size=9

Try using this instead (you can adjust it for different encoding if necessary):

URxvt.font: -*-terminus-medium-r-*-*-14-*-*-*-*-*-iso10646-1
URxvt.boldFont: -*-terminus-bold-r-*-*-14-*-*-*-*-*-iso10646-1
URxvt.italicFont: -*-terminus-medium-r-*-*-14-*-*-*-*-*-iso10646-1
URxvt.boldItalicFont: -*-terminus-bold-r-*-*-14-*-*-*-*-*-iso10646-1

Then run

xrdb -load ~/.Xresources

restart the terminal and see what happens.

Last edited by bohoomil (2012-05-15 14:26:18)


:: Registered Linux User No. 223384

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

Offline

Board footer

Powered by FluxBB