Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
urxvt cannot set font
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
arb
n00b
n00b


Joined: 06 Sep 2014
Posts: 9

PostPosted: Sun Sep 07, 2014 5:42 pm    Post subject: urxvt cannot set font Reply with quote

I am just about to pull my hair out at this point. I am trying to set a font for urxvt, but no matter what I do I always keep getting the error:

urxvt: unable to load base fontset, please specify a valid one using -fn, aborting.

I have tried using DejaVu and Source Code Pro, I tried playing with xset/eselect/mkfont, trying different font options, but I always end up with the same message which gives me no further information. What am I overlooking?

Here is a sample config I'm using in Xdefaults: Urxvt*font: xft:DejaVu Sans:style=Book:pixelsize=14
Back to top
View user's profile Send private message
mubai
n00b
n00b


Joined: 10 Jul 2004
Posts: 32
Location: Sweden

PostPosted: Sun Sep 07, 2014 5:54 pm    Post subject: Reply with quote

arb,

I'm settining the font through ~/.Xresources as below:

Code:

!
! Comments begin with a "!" character.
!
UXTerm*faceSize:       8
UXTerm*faceName:       Droid Sans Mono


After, run:
Code:

$ xrdb -merge ~/.Xresources


Does that work for you?

Regards,
Back to top
View user's profile Send private message
franzf
Advocate
Advocate


Joined: 29 Mar 2005
Posts: 4408

PostPosted: Sun Sep 07, 2014 6:08 pm    Post subject: Reply with quote

Did you build rxvt-unicode with USE="xft"?
Also I see you want to use a non-mono-font - Don't know if urxvt actually likes that ;)

That's my line in .Xresources:
Code:
URxvt*font: xft:Dejavu Sans Mono:pixelsize=12


// edit
Ah, another difference:
/me: URxvt
/you: Urxvt
Probably X resources matching is case sensitive?
Back to top
View user's profile Send private message
mubai
n00b
n00b


Joined: 10 Jul 2004
Posts: 32
Location: Sweden

PostPosted: Sun Sep 07, 2014 6:15 pm    Post subject: Reply with quote

Quote:
I am trying to set a font for urxvt


Ah... I simply can't read. Sorry - forget my post!
Back to top
View user's profile Send private message
arb
n00b
n00b


Joined: 06 Sep 2014
Posts: 9

PostPosted: Mon Sep 08, 2014 4:05 am    Post subject: Reply with quote

It was the xft use flag. I thought I had to install it through emerge. It works.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum