You are not logged in.

#1 2014-10-17 07:44:27

heroinsunrise
Member
Registered: 2014-10-10
Posts: 8

URxvtc, problem using certain fonts - did everything I could think of

Hi.

I'm using Urxvtc with the Urxvtd daemon. Has always worked flawlessly, until I decided to switch from the Ohsnap Artwiz-font to Liberation Sans.

I seem to be able to load the Liberation Sans font as seen in the screenshot, and

fc-list

gives me a correct list of all the fonts including Liberation sans (seen in the screenshot), but no matter what pixelsize I enter I end up with a tiny tiny one, which I guess is about 10px. URxvt seems to ignore the fontsize alltogether, for this one font.

If i try

urxvt -fn xft:Liberation\ Sans:regular:size=12" 

(Window 3, on the bottom left @ screenshot),
i end up with the standarized placeholder font for when URxvt can't find the font
(Window 1, on the top left @ screenshot .)

If i try

 urxvt -fn <tab> 

I see all the correct fonts, but when I select 

-misc-liberation\ sans-medium-r-normal--

   ( Window 3, bottom left @ SS ) I get the "urxvt: unable to load base fontset, please specify a valid one" error message.

I've done

mkfontscale /usr/share/fonts/TTF
                       mkfontdir /usr/share/fonts/TTF
                       xset +fp /usr/share/fonts/TTF
                       fc-cache -fv
                        

. Yet, it's giving me the above problems.

Any input or direction greatly appreciated. Including link to the screenshot showing the problem below.

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

Last edited by heroinsunrise (2014-10-17 11:19:48)

Offline

#2 2014-10-17 11:47:32

thisoldman
Member
From: Pittsburgh
Registered: 2009-04-25
Posts: 1,172

Re: URxvtc, problem using certain fonts - did everything I could think of

Do you truly want Liberation Sans? That's a proportionally spaced font and most people will use a monospaced font for their terminal apps.  Liberation Sans will give ugly, wide spacing, similar to the upper-left terminal in your screen shot.

Perhaps you really want Liberation Mono?

You are not naming the fonts correctly.  Are you rushing through your reading of the documentation?

For 12 point Liberation Sans, using xft:
⁣        urxvt -fn "xft:Liberation Sans:style=Regular:size=12"
Xlfd font names require fourteen fields (fourteen hyphens):
⁣        urxvt -fn "-misc-liberation sans-medium-r-normal--0-120-0-0-*-0-iso10646-1"

For Liberation Mono:
⁣        urxvt -fn "xft:Liberation Mono:style=Regular:size=12"
or,
⁣        urxvt -fn "-misc-liberation mono-medium-r-normal--0-120-0-0-*-0-iso10646-1"

Edit – because xlfd names are complicated and I got it wrong.

Last edited by thisoldman (2014-10-17 11:58:39)

Offline

Board footer

Powered by FluxBB