Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I wonder whether there's a way to make urxvt render xft fonts:

URxvt.font: xft:Droid Sans Mono Slashed:pixelsize=9:Regular
URxvt.boldFont: xft:Droid Sans Mono Slashed:pixelsize=9:Bold
URxvt.talicFont: xft:Droid Sans Mono Slashed:pixelsize=9:Italic
URxvt.bolditalicFont: xft:Droid Sans Mono Slashed:pixelsize=9:Bold:Italic

If I try this, I get something like: alt text

So it scales pretty bad:

 ! Fonts
 Xft.dpi:        132
 Xft.antialias:  true
 Xft.rgba:       rgb
 Xft.hinting:    true
 Xft.autohint:  true
 Xft.hintstyle:  hintfull   

I'm not sure whether this is one of the reaons. However I want antialias and that Droid. Is there any trick here?

share|improve this question
add comment

3 Answers 3

urxvt will use a default font if it cannot find the xft font name you specify. For example, the following will look like your screenshot:

urxvt -fn 'xft:foo'

To find out which xft fonts you have available, run:

fc-list

Here is how I run urxvt with the beautiful Ubuntu Monospace font:

urxvt -fn "xft:Ubuntu Mono:pixelsize=14,style=regular"
share|improve this answer
add comment

I got it just working with command line option "-letsp -1", see also

http://www.saltycrane.com/blog/2009/11/how-make-urxvt-look-gnome-terminal/

share|improve this answer
add comment

I have this in my .Xdefaults and Droid Sans Mono looks great:


!-- Xft settings -- !
Xft.dpi:        96
Xft.antialias:  true
Xft.rgba:       rgb
Xft.hinting:    true
Xft.hintstyle:  hintslight

! -- Fonts -- !
URxvt.font:xft:droid sans mono slashed:medium:pixelsize=11
URxvt.boldFont:xft:droid sans mono slashed:medium:pixelsize=11
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.