You are not logged in.

#1 2008-07-10 15:06:44

Stalafin
Member
From: Berlin, Germany
Registered: 2007-10-26
Posts: 617

[SOLVED] Question about URxvt - fontconfig and ulr launching

So today I am slightly rewriting my .Xdefaults (actually outright copying MrElendig's...), and now my URxvt won't launch... big_smile

Here is what I get as an output:

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

What's the error?
You can find my .Xdefaults here:
http://pastie.org/231515

Also, I have an issue with my URL handling from within URxvt:
I want to launch a URL clicking on it. But no matter what I specify for urxvt*matcher.Button, I can only use my middle mouse button (on a Thinkpad X60s.... could that be the problem?).

Last edited by Stalafin (2008-07-11 14:14:54)

Offline

#2 2008-07-10 15:17:48

buttons
Member
From: NJ, USA
Registered: 2007-08-04
Posts: 620

Re: [SOLVED] Question about URxvt - fontconfig and ulr launching

Hmm.  I guess the first silly thing to ask is, "Have you installed terminus?"

The relevant parts of my .Xdefaults are follows.  You don't need the entire font line thingie.

urxvt*font: xft:Terminus
urxvt*boldFont: xft:Terminus

Terminus is terminus-font in community.


Cthulhu For President!

Offline

#3 2008-07-10 15:20:12

Stalafin
Member
From: Berlin, Germany
Registered: 2007-10-26
Posts: 617

Re: [SOLVED] Question about URxvt - fontconfig and ulr launching

Haha, that's exactly what I was asked on IRC. smile

Of course I have installed Terminus - I have even reinstalled it just to make sure.

Anyway:

[ ~ ] pacman -Qs terminus
local/terminus-font 4.26-1
    A superb, monospace bitmap font (for X11 and console)

I had installed it for a loooooong time, and right now Xmobar (for Xmonad) is using it.


What's actually the difference between the way you define the fonts and the way they are defined in my (/MrElendig's) config?

EDIT: Actually with xft:Terminus it works now... strange. hmm

Last edited by Stalafin (2008-07-10 15:22:18)

Offline

#4 2008-07-10 16:28:15

pseup
Member
Registered: 2008-06-06
Posts: 103

Re: [SOLVED] Question about URxvt - fontconfig and ulr launching

Xft is for prettier, anti aliased / hinted fonts I think. But I find that using xft makes urxvt extremely sluggish when using large terminals.

Eg, I open a full screen URXVT (1920x1200), running 'time seq -s " " 1 100000' to print out heaps of text:
0m0.306s with '-*-terminus-*-*-*-*-12-*-*-*-*-*-*-*'
0m12.165s with 'xft:terminus:pixelsize=12'

Sure I'm not looking at full screen terminals of scrolling text all the time, but it is still noticeably slow even in small terminals.

I don't have url matching enabled now, but I did use Gigamo's config at one stage to try it, and the mouse behaved as expected. Not sure if there is anything in it that would make a difference: http://github.com/gigamo/config/tree/master/.Xdefaults

Offline

#5 2008-07-10 17:39:39

Stalafin
Member
From: Berlin, Germany
Registered: 2007-10-26
Posts: 617

Re: [SOLVED] Question about URxvt - fontconfig and ulr launching

Well, this is strange. Am i doing something weird defining the font?

Why doesn't the following work? >
URxvt*font: -*-Terminus-*-*-*-*-12-*-*-*-*-*-*-*

No matter what I do, it doesnt work. I tried
URxvt*font: -*-Terminus-*-*-*-*-12-*-*-*-*-*-*-*
URxvt*font: -*-terminus-*-*-*-*-12-*-*-*-*-*-*-*
URxvt*font: -*-Terminus-*-*-*-*-12-*-*-*-*-*-*-u
URxvt*font: -*-terminus-*-*-*-*-12-*-*-*-*-*-*-u

Both capital and small, u at the end and without u.... I am getting the same error as posted above.

Actually the whole syntax looks a bit strange to me. Can you tell me where I can find some info about that stuff? I mean with the '-*-*-*-*-*-. smile

Offline

#6 2008-07-10 18:07:05

semperfiguy
Member
Registered: 2007-12-03
Posts: 224

Re: [SOLVED] Question about URxvt - fontconfig and ulr launching

pseup wrote:

Xft is for prettier, anti aliased / hinted fonts I think. But I find that using xft makes urxvt extremely sluggish when using large terminals.

Eg, I open a full screen URXVT (1920x1200), running 'time seq -s " " 1 100000' to print out heaps of text:
0m0.306s with '-*-terminus-*-*-*-*-12-*-*-*-*-*-*-*'
0m12.165s with 'xft:terminus:pixelsize=12'

Sure I'm not looking at full screen terminals of scrolling text all the time, but it is still noticeably slow even in small terminals.

I don't have url matching enabled now, but I did use Gigamo's config at one stage to try it, and the mouse behaved as expected. Not sure if there is anything in it that would make a difference: http://github.com/gigamo/config/tree/master/.Xdefaults

pseup: I get different results.  urxvt -fn xft:terminus:pixelsize=12 gives me a time of 5.351s and urxvt -fn -*-terminus-*-*-*-*-12-*-*-*-*-*-*-* gives me a time of ranges from 4-9 seconds! This is in a half screen terminal with the other terminal running the urxvt -fn *** command.

Fullscreen terminal (1280x800) with fonts defined in Xdefaults give the same results you got. intresting.

Last edited by semperfiguy (2008-07-10 18:10:04)

Offline

#7 2008-07-10 18:07:21

sujoy
Member
From: India
Registered: 2008-02-08
Posts: 94
Website

Re: [SOLVED] Question about URxvt - fontconfig and ulr launching

try xfontsel

Offline

#8 2008-07-10 18:26:38

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,092

Re: [SOLVED] Question about URxvt - fontconfig and ulr launching

His problem is that he don't have /usr/share/fonts/local in his fontpath in xorg.conf, that's why the fontline hails


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#9 2008-07-10 19:03:16

Stalafin
Member
From: Berlin, Germany
Registered: 2007-10-26
Posts: 617

Re: [SOLVED] Question about URxvt - fontconfig and ulr launching

So, I added a font path with /usr/share/fonts/local to my xorg.xonf - what do I have to do now? I still cannot run urxvt with the above settings.


EDIT: I ran xfontsel. It detects terminus correctly, and I can configure a code like seen in the first post. However, I am not able to get URxvt running no matter what I do. sad

Last edited by Stalafin (2008-07-10 20:39:34)

Offline

#10 2008-07-11 05:59:00

Pnevma
Member
Registered: 2008-04-11
Posts: 112

Re: [SOLVED] Question about URxvt - fontconfig and ulr launching

Stalafin wrote:

So, I added a font path with /usr/share/fonts/local to my xorg.xonf - what do I have to do now? I still cannot run urxvt with the above settings.


EDIT: I ran xfontsel. It detects terminus correctly, and I can configure a code like seen in the first post. However, I am not able to get URxvt running no matter what I do. sad

Restart.

Offline

#11 2008-07-11 09:35:42

Stalafin
Member
From: Berlin, Germany
Registered: 2007-10-26
Posts: 617

Re: [SOLVED] Question about URxvt - fontconfig and ulr launching

I restarted it several times; it didn't work out.

Now, I changed -*-terminus-*-*-*-*-12-*-*-*-*-*-*-u
into -*-terminus-*-*-*-*-12-*-*-*-*-*-*-* (notice the * instead of u), and finally my URxvt DOES indeed start.

But I wonder why the code terminating on u (it's is for unicode, isn't it?) isn't displayed properly (unable to load base fonset, etc.).

Any ideas?


EDIT: After rebuilding my locales even uft8 works. smile

Last edited by Stalafin (2008-07-11 14:16:16)

Offline

Board footer

Powered by FluxBB