Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

XTerm font is very small. How can I set it larger?

share|improve this question

5 Answers 5

up vote 20 down vote accepted

If you don't already have one, create a file in your home directory named .Xresources to store your preferences for various X programs. Append a line to the file such as

xterm*font:     *-fixed-*-*-*-18-*

This informs xterm to use the 'fixed' font at size 18.

From here, you can either restart X or run xrdb -merge ~/.Xresources in a terminal to incorporate the changes you've made. All new xterms should now have the font change.

If you run man xterm and go down to the RESOURCES section, you can find a wealth of additional, configurable xterm options.

share|improve this answer
    
Thanks noffle it worked....but how can i set the dimensions of the xterm windows to a fixed ones? –  Sudo Jul 10 '12 at 9:32
3  
The X resource for dimensions is geometry. So something like the following in your .Xresources would work: xterm*geometry: 110x50. –  noffle Jul 10 '12 at 14:07
    
Thanks noffle i really appreciate your help :) –  Sudo Jul 10 '12 at 16:13
1  
You're welcome. Consider creating a separate question in the future for the geometry issue rather than tacking it into a comment: it makes it harder for others to find. –  noffle Jul 10 '12 at 17:06

You can also Ctrl-Right mouse click for temporary change of font size

share|improve this answer

Use -fa and -fs parameters:

xterm -fa 'Monospace' -fs 14
share|improve this answer

you can also simply test them with :

xterm -fn "--clean--*---*---*---*-*"

after sel with xfontsel

share|improve this answer

From messing with /etc/X11/app-defaults/XTerm file and man page for Xterm I found two methods. Method 1 , simpler method but not permanent: hold Ctrl key and right click button. This should bring up a menu for VT fonts, which stays on only as long as you hold right click key. You should see 7 choices, the largest being huge, which is what i'm using because my vision isn't exactly good.

Source: xterm(1) man page, part VT Fonts, which states " The fontMenu pops up when when the “control” key and pointer button three are pressed in a window. "

Method 2, permanent: look through /etc/X11/app-defaults/XTerm, find what sizes lines such as *VT100.font1: , choose one, and write somewhere xterm*font: 10x20 (10x20 , again this is my choice for reasons i already stated).

About my system: I'm running Ubuntu 13.10

share|improve this answer
    
Didn't notice that dolzenko has already posted method 1 before. Oh, well. –  Xieerqi Aug 6 at 8:37

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.