change_font_size

This is part of The Pile, a partial archive of some open source mailing lists and newsgroups.



Subject: Re: mutt & emacs font size
From: Jan Carlson <janc@iname.com>
Date: Sun, 23 May 1999 15:33:27 -0400

jojo wrote:

>         I'm pretty new to Linux.  I got RH 6 installed and
>am currently running xwindows at a resolution of
>1280x1024. I like the resolution cranked up like that high
>except for one thing, when I run mutt or emacs the font
>size is very small and hard to see.  I have figured out how
>to change the font size for things like Netscape, but as
>far as mutt and emacs are concerned, I have no clue.  Any
>help would be greatly appreciated.

Temporary changes:

emacs:  shift left-mouse-button

xterm running mutt or anything else:
        shift right-mouse-button

Permanent changes - edit your .Xdefaults file:
emacs*font: 10x20
xterm*font: 10x20

To change the font in everything, try:

*font: 10x20

For a list of available fonts:  xlsfonts|less
Here are a few of the simpler ones:

5x7
5x8
6x10
6x12
6x13
6x9
7x13
7x14
8x13
8x16
9x15
10x20
12x24

===

Subject: Re: mutt & emacs font size
From: Chuck Mead <chuck@moongroup.com>
Date: Sun, 23 May 1999 14:56:42 -0400 (EDT)


On Sun, 23 May 1999, jojo spewed into the bitstream:

> Hi,
> 	I'm pretty new to Linux.  I got RH 6 installed and am currently
> running xwindows at a resolution of 1280x1024. I like the resolution
> cranked up like that high except for one thing, when I run mutt or
> emacs the font size is very small and hard to see.  I have figured out
> how to change the font size for things like Netscape, but as far as
> mutt and emacs are concerned, I have no clue.  Any help would be
> greatly appreciated.

This should help... I use the same resolution on X as you do and my mail
reader is pine... here's the command I use to call pine:

aterm -fn -adobe-courier-bold-r-normal--14-140-75-75-m-90-iso8859-1 +tr
-pixmap /home/chuck/Moongroup.xpm -fg white -bg black -geometry 100x52+0+0
+ut -T cto.moongroup.org-pine -n Mail  -e pine

It's all one line!

===

Subject: Re: mutt & emacs font size
From: Gene Wilburn <gwilburn@rom.on.ca>
Date: Sun, 23 May 1999 14:23:31 -0400 (EDT)


While you're in X, invoke xterm with a few different font sizes to see
which you like, e.g.,

xterm -font 7x13 &
xterm -font 8x13 &
xterm -font 9x15 &

Then edit your ~/.Xdefaults file, changing the lines like

xterm*font: fixed

to

xterm*font: 8x13

etc.

Then exit X, restart X, and every time you invoke a program that runs in
xterm (Mutt, Pine, etc) it'll have the font size you like.

===

Subject: Re: mutt & emacs font size
From: Hal Burgiss <hdb@iglou.com>
Date: Sun, 23 May 1999 16:03:45 -0400


On Sun, May 23, 1999 at 02:14:58PM -0400, jojo wrote:

> 	I'm pretty new to Linux.  I got RH 6 installed and
>am currently running xwindows at a resolution of
>1280x1024. I like the resolution cranked up like that high
>except for one thing, when I run mutt or emacs the font
>size is very small and hard to see.  I have figured out how
>to change the font size for things like Netscape, but as
>far as mutt and emacs are concerned, I have no clue.  Any
>help would be greatly appreciated.


Well, I use vim with mutt and not sure what works with one will work the
same in the other. 

One thing that should work is editing/adding to your ~/.Xdefaults file.
There may be an emacs section there already. Try adding: 

  emacs*font: -*-lucidatypewriter-medium-*-*-*-18-*-*-*-*-*-*-*

in there somewhere (choose your own font/point size), and then run:

  xrdb -load ~/.Xdefaults 
  
to update your X settings. This should give you the specified font
anytime you start an emacs session.

You might also check out Eterm (similar to aterm) sometime. There is
emacs and mutt themes that come with Eterm. I'm using the Eterm/mutt
theme with some modifications, and its pretty spiffy (at
least with vim).

===

From: Joe Brenner <doom@kzsu.Stanford.EDU>
Date: Fri, 19 Mar 1999 00:54:11 -0800
Subject: Re: Font Size? 

"=?iso-8859-1?Q?Mart=EDn_Rodolfo_Gonzal=E9z?=" <martinrg@fibertel.com.ar> wrote:

> Hi, I am starting to use  the X windows System and I would like to know 
> if there is any was to increase the font size in the gui since I am 
> working in 1024x768 resolution and sometimes the fonts are hard to read.

For many apps, you can do a Control Right Click to change
the font size at will.  Emacs is a little odd (of course),
in that you do a Shift Left Click -> Misc to select a
different font. 

There are a number of different techniques you could use to 
make a font size change permanent.  For myself, it's most
important to me for emacs to come up in the right way, and I
force this to happen by using this alias (a line you could
put in the ~/.bashrc file):

   alias emacs="emacs -fn \"9x15\" -g 80x45+100+0 &"

Command-line options like -fn for font and -g for geometry
are common to most X applications... you can look up details
on this by doing a man X. 

Note that the command xlsfonts will generate a list of
available font names that you could use as an argument to
-fn (I prefer 9x15 for emacs, but the even larger 10x20 is
okay also).

Another method would be to play with the ~/.Xdefaults file, 
where you will notice lines like 

emacs*font: fixed
emacs.geometry: 80x48

In all likelyhood I could have changed the font and geometry
here, rather than creating an alias to do it... and quite
possibly I should have, but for whatever reason it just
occured to me to create an alias for "emacs" first.  If you
can manage to figure out the correct resource name to mess
with, you can presumably change the default font for any app
inside the .Xdefaults file

But similar things could also be done with the individual
files for each application in /usr/lib/X11/app-defaults

Just as a quick example, you'll notice that there's a file
for NXTerm that contains some lines like:

*SimpleMenu*menuLabel.font:
-adobe-helvetica-bold-r-normal--*-120-*-*-*-*-iso8859-*

This is a mildly complicated subject though, because you can
use wild cards on both the left and the right side of the
assignment.  Every place you see an asterix here is a place
where the author of the app-defaults file declined to
specify something precisely.  It doesn't help that in this
file there are multiple lines for different types of "font"
resources, and figuring out what they all do without a lot
of trial and error would be difficult.  Anyway, for more
details, do a "man X" and look at the section labeled "FONT
NAMES"

And come to think of it, there's probably a third way I
could make a change to the emacs font, using some lines in
the ~/.emacs file (traditionally, I set my colors this way,
I don't know why I didn't do the same with the font).

===

the rest of The Pile (a partial mailing list archive)

doom@kzsu.stanford.edu