General TC > General TC Talk

change font size

(1/5) > >>

clyde987:
Hello,
I have TCL 6.4. and how can I change the font size of the terminal? :'(

I found this page.
http://forum.tinycorelinux.net/index.php?topic=13129.0
But I couldn't find the right page for the answer.

PDP-8:
If you are using the stock aterm terminal, one has to edit the .Xdefaults file like we did back in '95.

The fastest way is to just fire up another terminal from within Aterm using one of these fonts typically:


--- Code: ---aterm -fn 10x20 &
--- End code ---

or

--- Code: ---aterm -fn 12x24 &
--- End code ---

They are bigger.  Not exactly beautiful, but functional.  They are the largest you'll find on a stock system, but provide a nicer environment to get started with.

If you run


--- Code: ---xlsfonts
--- End code ---

you'll see other smaller fixed-width fonts like 9x15 and so forth that may or may not be too small with a high resolution screen.   The font journey begins! :)

Rich:
Hi clyde987
Find the DPI listed in in your  .Xdefaults  file:

--- Code: ---tc@box:~$ grep Xft.dpi .Xdefaults
Xft.dpi: 96.0
tc@box:~$
--- End code ---

The following command can be used to list all the  14 point  fonts on your system suitable for  96 DPI:

--- Code: ---tc@box:~$ xlsfonts -f -*-*-*-*-*-*-*-140-96-96-*-*-iso8859-1
-adobe-helvetica-bold-o-normal--19-140-96-96-p-0-iso8859-1
-adobe-helvetica-bold-r-normal--19-140-96-96-p-0-iso8859-1
-adobe-helvetica-medium-o-normal--19-140-96-96-p-0-iso8859-1
-adobe-helvetica-medium-r-normal--19-140-96-96-p-0-iso8859-1
-b&h-luxi mono-bold-o-normal--19-140-96-96-m-0-iso8859-1
-b&h-luxi mono-bold-o-normal--19-140-96-96-m-0-iso8859-1
-b&h-luxi mono-bold-r-normal--19-140-96-96-m-0-iso8859-1
-b&h-luxi mono-bold-r-normal--19-140-96-96-m-0-iso8859-1
-b&h-luxi mono-medium-o-normal--19-140-96-96-m-0-iso8859-1
-b&h-luxi mono-medium-o-normal--19-140-96-96-m-0-iso8859-1
-b&h-luxi mono-medium-r-normal--19-140-96-96-c-0-iso8859-1
-b&h-luxi mono-medium-r-normal--19-140-96-96-m-0-iso8859-1
-b&h-luxi sans-bold-o-normal--19-140-96-96-p-0-iso8859-1
-b&h-luxi sans-bold-o-normal--19-140-96-96-p-0-iso8859-1
-b&h-luxi sans-bold-r-normal--19-140-96-96-p-0-iso8859-1
-b&h-luxi sans-bold-r-normal--19-140-96-96-p-0-iso8859-1
-b&h-luxi sans-medium-o-normal--19-140-96-96-p-0-iso8859-1
-b&h-luxi sans-medium-o-normal--19-140-96-96-p-0-iso8859-1
-b&h-luxi sans-medium-r-normal--19-140-96-96-p-0-iso8859-1
-b&h-luxi sans-medium-r-normal--19-140-96-96-p-0-iso8859-1
-b&h-luxi serif-bold-o-normal--19-140-96-96-p-0-iso8859-1
-b&h-luxi serif-bold-o-normal--19-140-96-96-p-0-iso8859-1
-b&h-luxi serif-bold-r-normal--19-140-96-96-p-0-iso8859-1
-b&h-luxi serif-bold-r-normal--19-140-96-96-p-0-iso8859-1
-b&h-luxi serif-medium-o-normal--19-140-96-96-p-0-iso8859-1
-b&h-luxi serif-medium-o-normal--19-140-96-96-p-0-iso8859-1
-b&h-luxi serif-medium-r-normal--19-140-96-96-p-0-iso8859-1
-b&h-luxi serif-medium-r-normal--19-140-96-96-p-0-iso8859-1
-misc-fixed-bold-r-normal--19-140-96-96-c-0-iso8859-1
-misc-fixed-bold-r-normal--19-140-96-96-c-0-iso8859-1
-misc-fixed-bold-r-semicondensed--19-140-96-96-c-0-iso8859-1
-misc-fixed-medium-o-normal--19-140-96-96-c-0-iso8859-1
-misc-fixed-medium-o-semicondensed--19-140-96-96-c-0-iso8859-1
-misc-fixed-medium-r-normal--19-140-96-96-c-0-iso8859-1
-misc-fixed-medium-r-normal--19-140-96-96-c-0-iso8859-1
-misc-fixed-medium-r-semicondensed--19-140-96-96-c-0-iso8859-1
-misc-fixed-medium-r-semicondensed--19-140-96-96-c-0-iso8859-1
-sony-fixed-medium-r-normal--19-140-96-96-c-0-iso8859-1
tc@box:~$
--- End code ---

Find the  Aterm*font: fixed  line in your  .Xdefaults  file and replace the word  fixed  with one of the fonts returned with the above
command.

 * For a list of appropriate fonts available on your system:
 *    xlsfonts -f -*-*-*-*-*-*-*-S-DPIx-DPIy-T-*-iso8859-1
 * Where:
 * S  Size of font in tenth of a point. For a 12 point font, use 120
 * DPIx and DPIy  These values can be found as  Xft.dpi   in in your  .Xdefaults  file
 * T  Use  p  for proportional. For monospace (fixed), try  m  or  c

clyde987:
Hello PDP-8,
Thank you very much for your quick reply.

I like
--- Code: ---aterm -fn 12x24 &
--- End code ---
,
and it is nice enough.

Yes, my font journey has begun since I did
--- Code: ---xlsfonts
--- End code ---
. ;D

clyde987:
Hello Rich,
Thank you for your quick reply.

My "Xft.dpi" was 96.0, too.
I tried

--- Code: ---aterm -fn -adobe-helvetica-bold-o-normal--19-140-96-96-p-0-iso8859-1 &
--- End code ---
and it worked.

Thank you for your detailed explanation. ;D

Navigation

[0] Message Index

[#] Next page

Go to full version