Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to enlarge font size in xterm...

Status
Not open for further replies.

adaaje

Technical User
May 26, 2006
60
AU
Hi guys,

I know it's abit newbie, but I'm struggling to change the font size in my xterm.

I had a look in "man xterm"
and I try to type "xterm -fs 20", but the font size didnt change...

Please don't laugh, but help thx...
 
Hi

I also tried a lot to change the font size, but no results. :-( I changed it from XTerm's menu. Ctrl-MouseLeft, Ctrl-MouseRight, Ctrl-MouseBoth, one of them. ( Sorry, I have no XTerm right now, to tell you exactly. )

Feherke.
 
Ctrl-Rightclick is the one.

You can use xterm -fn <font-name> to select a font.

Use the xfontsel command (it's horrible, I know) to choose fonts. For example, I use this font:

[tt]-misc-fixed-medium-r-normal-*-*-120-75-75-c-70-iso8859-1[/tt]

Rather than specifying it on the command line you can add it to your Xresources by creating a file containing some resources such as:

[tt]xterm*background: black
xterm*font: -misc-fixed-medium-r-normal-*-*-120-75-75-c-70-iso8859-1
xterm*foreground: grey
xterm*loginShell: true
...[/tt]

And then xrdb -merge <filename> to add it to the X resource database. I have this command in my .xsession script.



Annihilannic.
 
depends on what font alias names you have configured, but on my AIX box this works:

xterm -fn 9x15 -fb 9x15bold

You can also use the full font names but that's a lot more typing...


HTH,

p5wizard
 
Thanks guys,

I've got the answer, I've tried it and it's working.
Code:
xterm -geometry 72x34 -fn *-fixed-*-*-*-20-* -fg orange -bg black &

The problem is we need to know exactly the fontname from the command (in my linux) "xlsfonts"

But I still have some issue how to define the color using hexadecimal... Any idea?
 
Hi

Annihilannic, I tried with [tt]xfontsel[/tt] generated strings too, but no success. I will try your advice using resource file just for curiousity because I need only command line solution.

Thanks.

Feherke.
 
-bg "#505050" -fg "#FFFFFF" white on darkish grey

#RRGGBB

RR=red GG=green BB=blue

again, this is on AIX


HTH,

p5wizard
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top