Author Topic: Xterm font - setting size  (Read 6087 times)

ongoto

  • Guest
Xterm font - setting size
« on: September 23, 2010, 09:45:50 PM »
-How to set the font for Xterm-

One way is to locate and edit .Xdefaults file.  If it is not in your /home/user/ directory, do:
locate Xdefaults

Copy it to your /home/user/ directory and rename it if necessary to
.Xdefaults     (needs the dot in front)
chown user:group .Xdefaults

Edit .Xdefaults and find the line xterm*font: . It will probably
be followed by fixed

Replace it with these two lines
XTerm*font:     *-fixed-*-*-*-20-*
XTerm*boldFont: *-fixed-*-*-*-20-* (-20- is the font size)

Save and do one more thing to make the changes take effect.
xrdb -merge ~/.Xdefaults

Cheers




Offline Rudge

  • Hero Member
  • *****
  • Posts: 9770
  • I'm Just A Dog.
Re: Xterm font - setting size
« Reply #1 on: September 23, 2010, 09:56:09 PM »
ongoto,  nice tip. I don't use Xterm because the font is always too small. Maybe I will give it a shot. Thanks!


-If you wish to make an apple pie from scratch, you must first invent the universe-  Carl Sagan

uncleV

  • Guest
Re: Xterm font - setting size
« Reply #2 on: September 24, 2010, 04:29:20 AM »
Thanks, ongoto!

Just for information:
On my LXDE there's .Xdefault file only in /root directory and locate doesn't find it if ran in non-root mode.

What does command xrdb do? It seems I have to run it each time after changes are made for them to take effect. I will fill a remark in this file to remind me of this.
« Last Edit: September 25, 2010, 06:51:23 AM by uncleV »

ongoto

  • Guest
Re: Xterm font - setting size
« Reply #3 on: September 24, 2010, 04:49:35 AM »
xrdb (X resource database manager) is a program used to read the user preferences into a database.  That data base is used when the X server starts.  The xrdb command gives you a way to refresh the data base without having to reboot or restart the X server.

That's my best guess anyway.   ;D

uncleV

  • Guest
Re: Xterm font - setting size
« Reply #4 on: September 24, 2010, 05:05:17 AM »
And it fulfills my answer, thank you :)

uncleV

  • Guest
Re: Xterm font - setting size
« Reply #5 on: October 11, 2010, 04:54:01 AM »
Here's an example:

[uncleV@localhost ~]$ su
Password:
[root@localhost uncleV]# updatedb
[root@localhost uncleV]# locate Xdefaults
/root/.Xdefaults

[root@localhost uncleV]# exit
[uncleV@localhost ~]$ locate Xdefaults
[uncleV@localhost ~]$


Updated but doesn't find it when run by <user>.
The user isn't allowed to peek to the Master's pot of soup you know :) ;D
« Last Edit: October 11, 2010, 04:56:33 AM by uncleV »

uncleV

  • Guest
Re: Xterm font - setting size
« Reply #6 on: October 11, 2010, 07:28:36 AM »
Why sorry?

That's a minor issue and it's easily elucidated if one is really interested in it, except the newbie, but the newbie would ask :D
You did the work for us, thanks.