You are not logged in.

#1 2012-03-11 17:27:43

GNUkid
Member
Registered: 2012-03-11
Posts: 12

[SOLVED]Change font issue

Hi, im new to Arch smile, im happy with it so far! But I want to get my favorite font "terminus" to work. I've read the wiki and i've also checked the FAQ for urxvt how to change font with no success. Im using latest Arch and I use urxvt as my terminal and awesome as wm, and i want the font to work on those both and in luakit if its possible. I've setup my xinitrc to make terminus work i've also resintalled it ones cuz I thought the font was broken or something. I used "URxvt.font:terminus" in my $HOME/.Xdefaults with no success. Ive also tried to add it to my rc.conf but it didnt make the font work in X(i havent checked if it appears on the commandline with no X up and running).

I hope i could get some help smile

Last edited by GNUkid (2012-03-11 18:36:38)

Offline

#2 2012-03-11 17:38:32

splittercode
Member
From: WI, USA
Registered: 2010-03-16
Posts: 203

Re: [SOLVED]Change font issue

Add these commands to your ~/.xinitrc and restart X11

xset +fp /usr/share/fonts/local
xset fp rehash

Also, using xfontsel is the best way to make sure you're adding the right entry to your .Xdefaults.

Last edited by splittercode (2012-03-11 17:39:13)

Offline

#3 2012-03-11 17:50:34

GNUkid
Member
Registered: 2012-03-11
Posts: 12

Re: [SOLVED]Change font issue

splittercode wrote:

Add these commands to your ~/.xinitrc and restart X11

xset +fp /usr/share/fonts/local
xset fp rehash

Also, using xfontsel is the best way to make sure you're adding the right entry to your .Xdefaults.

Wow, thanks for the fast response big_smile, it worked, but I cant get urxvt to use the font thought hmm

Offline

#4 2012-03-11 17:54:00

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED]Change font issue

urxvt*font:     -*-terminus-medium-r-*-*-12-*-*-*-*-*-*-*

works for me.

Post your .Xdefaults.

Offline

#5 2012-03-11 17:57:55

magicalChicken
Member
From: in the sky
Registered: 2012-03-03
Posts: 73
Website

Re: [SOLVED]Change font issue

.Xdefaults is deprecated, use .Xresources instead. Try in .Xresources adding

 urxvt*font: <name of font> 

Then to your .xinitrc add

 xrdb --merge ~/.Xresources 

I use this for setting the inconsolata font as default in urxvt and it works just fine.

Offline

#6 2012-03-11 18:06:14

GNUkid
Member
Registered: 2012-03-11
Posts: 12

Re: [SOLVED]Change font issue

karol wrote:
urxvt*font:     -*-terminus-medium-r-*-*-12-*-*-*-*-*-*-*

works for me.

Post your .Xdefaults.

Didnt work hmm Heres my .Xdefualts:

urxvt*font:     -*-terminus-medium-r-*-*-12-*-*-*-*-*-*-*
URxvt.foreground: #1793D1
URxvt.background: #555753
URxvt.scrollBar: off
magicalChicken wrote:

.Xdefaults is deprecated, use .Xresources instead. Try in .Xresources adding

 urxvt*font: <name of font> 

Then to your .xinitrc add

 xrdb --merge ~/.Xresources 

I use this for setting the inconsolata font as default in urxvt and it works just fine.

The .Xresources didnt work for me for some reason so thats why im using Xdefaults.

Offline

#7 2012-03-11 18:09:50

magicalChicken
Member
From: in the sky
Registered: 2012-03-03
Posts: 73
Website

Re: [SOLVED]Change font issue

The .Xresources didn't work for me

Did you run

 xrdb --merge ~/.Xresources 

This has to be run after the file is updated each time in order for the changes to take affect.

Offline

#8 2012-03-11 18:12:03

GNUkid
Member
Registered: 2012-03-11
Posts: 12

Re: [SOLVED]Change font issue

magicalChicken wrote:

The .Xresources didn't work for me

Did you run

 xrdb --merge ~/.Xresources 

This has to be run after the file is updated each time in order for the changes to take affect.

Hmm, i thought I would add that to my $HOME/.xinitrc, \o/ im stupid. I'll try that then thanks smile.

Offline

#9 2012-03-11 18:14:33

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED]Change font issue

GNUkid wrote:
magicalChicken wrote:

The .Xresources didn't work for me

Did you run

 xrdb --merge ~/.Xresources 

This has to be run after the file is updated each time in order for the changes to take affect.

Hmm, i thought I would add that to my $HOME/.xinitrc, \o/ im stupid. I'll try that then thanks smile.

That's what you do, add it to ~/.xinitrc. The thing is, you need to quit X and log back in for the changes to take effect ... or you can run 'xrdb --merge ~/.Xresources' manually :-)

Offline

#10 2012-03-11 18:21:54

GNUkid
Member
Registered: 2012-03-11
Posts: 12

Re: [SOLVED]Change font issue

@magicalChicken

Hmm, I added xrbd --merge ~/.Xresources to my .xinitrc, then renamed my .Xdefualts to .Xresources and then i ran the command, now it doesnt use any of those config files, its just the standard config.

Offline

#11 2012-03-11 18:25:35

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED]Change font issue

Run

printf '\33]50;%s\007' xft:terminus:pixelsize=12

in your terminal.

Offline

#12 2012-03-11 18:35:54

GNUkid
Member
Registered: 2012-03-11
Posts: 12

Re: [SOLVED]Change font issue

karol wrote:

Run

printf '\33]50;%s\007' xft:terminus:pixelsize=12

in your terminal.

Okey, it changed the font to terminus, but only temp. then i restarted urxvt it used the default font again.

But, I was able to fix it thought, I rewrote my .Xresources to:

URxvt*font:     -*-terminus-medium-r-*-*-12-*-*-*-*-*-*-*
URxvt*foreground: #Blue
URxvt*background: #Grey
URxvt*scrollBar: off

Thank all for the fast replies and all help big_smile Marking the thread [SOLVED] smile

Offline

Board footer

Powered by FluxBB