You are not logged in.

#1 2018-03-07 16:45:13

Gladuin
Member
Registered: 2018-03-07
Posts: 5

[SOLVED] How do I use a bitmap font in URxvt?

Hello,

I have just installed arch and wanted to install a new bitmap font in URxvt and I followed the manual installation in the arch wiki.
I ran fc-list | grep creep and this was the output, Wich means it's installed. (I assume)

/usr/share/fonts/bitmap/creep.bdf: creep:style=Regular

So I edited my .Xresources and added the line URxvt.font: creep:style=Regular and restarted xorg. but the font didn't change...
So I wondered if the font has a diffrent name or something...

Thank you in advance!

P.S. this is the font I'm trying to use

Last edited by Gladuin (2018-03-09 18:18:18)

Offline

#2 2018-03-07 17:10:40

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [SOLVED] How do I use a bitmap font in URxvt?


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2018-03-07 19:36:56

Gladuin
Member
Registered: 2018-03-07
Posts: 5

Re: [SOLVED] How do I use a bitmap font in URxvt?

Hmm... I have added the font path (/usr/share/fonts/bitmap) to my fontpath, It shows up in xset q and I have ran mkfontscale and mkfontdir. I have also rehashed the fonts and it shows up in it's font.dir and xlsfonts as creep.bdf -gbdfed-creep-regular-r-normal--16-120-96-96-m-4-iso10646-1 and I've added that line to URxvt.font with and without creep.bdf in front of it and it still doesn't work...

Offline

#4 2018-03-07 19:53:20

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [SOLVED] How do I use a bitmap font in URxvt?

Paste your XResources.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2018-03-09 13:57:55

Gladuin
Member
Registered: 2018-03-07
Posts: 5

Re: [SOLVED] How do I use a bitmap font in URxvt?

jasonwryan wrote:

Paste your XResources.

! URxvt.font: -gbdfed-creep-regular-r-normal--16-120-96-96-m-4-iso10646-1
URxvt.font: creep.bdf -gbdfed-creep-regular-r-normal--16-120-96-96-m-4-iso10646-1

Offline

#6 2018-03-09 14:31:42

seth
Member
Registered: 2012-09-03
Posts: 51,213

Re: [SOLVED] How do I use a bitmap font in URxvt?

That's your XResources? Or just random lines from it?
The uncommented one is for sure wrong.

Also:

I edited my .Xresources and added the line URxvt.font: creep:style=Regular and restarted xorg

You're aware that you somehow need to load the resources? This doesn't happen magically when the X11 server starts.

xrdb -query | grep -i creep

Offline

#7 2018-03-09 15:36:32

Gladuin
Member
Registered: 2018-03-07
Posts: 5

Re: [SOLVED] How do I use a bitmap font in URxvt?

seth wrote:

That's your XResources? Or just random lines from it?
The uncommented one is for sure wrong.

Also:

I edited my .Xresources and added the line URxvt.font: creep:style=Regular and restarted xorg

You're aware that you somehow need to load the resources? This doesn't happen magically when the X11 server starts.

xrdb -query | grep -i creep

That is all I have in my .Xresources.
xrdb -query doesn't output anything, even if I remove grep.

Offline

#8 2018-03-09 15:41:56

seth
Member
Registered: 2012-09-03
Posts: 51,213

Re: [SOLVED] How do I use a bitmap font in URxvt?

xrdb -query doesn't output anything, even if I remove grep.

seth wrote:

You're aware that you somehow need to load the resources? This doesn't happen magically when the X11 server starts.

Offline

#9 2018-03-09 18:15:37

Gladuin
Member
Registered: 2018-03-07
Posts: 5

Re: [SOLVED] How do I use a bitmap font in URxvt?

seth wrote:

xrdb -query doesn't output anything, even if I remove grep.

seth wrote:

You're aware that you somehow need to load the resources? This doesn't happen magically when the X11 server starts.

Thank you very much for the heads up, I ran xrdb ~/.Xresources and restarted URxvt and it worked! Do I just need to add this line to my .xinitrc?

Offline

#10 2018-03-09 18:49:15

seth
Member
Registered: 2012-09-03
Posts: 51,213

Re: [SOLVED] How do I use a bitmap font in URxvt?

Depends on how you start your session (ie. whether xinitrc is invoked), but principally yes.

Offline

Board footer

Powered by FluxBB