<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<title></title>
</head>
<body text="#000000" bgcolor="#ffffff">
On 02/26/2010 02:35 PM, Vincent Onelli wrote:
<blockquote cite="mid:1267212912.3514.7.camel@laptop" type="cite">
<pre wrap="">Hello,
I installed emacs from software that comes with Fedora 12, the
characters are so large that makes unusable. Any body know how to
correct it to a standard font?
</pre>
</blockquote>
Emacs, by default, should be using the system standard font unless
otherwise specified to use a different font. You should check your X
resources files (~/.Xdefaults or ~/.Xresources) and your .emacs file to
see if something is specifying the large font that you are seeing.<br>
<br>
<br>
There are a couple of ways that you can specify the font to be used in
emacs.<br>
<br>
One way is to set the value in your ~/.Xdefaults or ~/.Xresources file.
<br>
<br>
emacs.font: 8x16<br>
<br>
Another way is to set it for an individual session of Emacs by using
command line arguments:<br>
<br>
emacs --font=9x15<br>
<br>
Yet another way, which is my preference, involve setting the font in
emacs itself using emacs-lisp. Basically what you want to do is change
the value of emacs variable default-frame-alist which controls how new
frames are created. Again, there are several ways to do this.<br>
<br>
Method 1: Customization<br>
1) Start emacs<br>
2) Enter Cntrl-H v default-frame-alist<br>
3) Move your cursor over the underlined "customize" that is in the
sentence just above "Value:"<br>
4) Hit Enter<br>
5) This brings you to a customization frame where you can set values
in default-frame-alist.<br>
6) If the Parameter font already exists, change its value to the
font that you want.<br>
7) Otherwise, click (using enter key) the last "INS" button.<br>
7a) replace the nil on the Parameter line with font.<br>
7b) replace the nil on the Value line with the name of the X
font that you want.<br>
8) Click (using the enter key) the button near the top with the label
"Save for future sessions". This will add emacs-lisp code to your
.emacs file to automatically set the font value each time you start
emacs.<br>
<br>
<br>
Method 2: Modifying .emacs - adding to default-frame-alist<br>
Add the following line to your .emacs file:<br>
<br>
(add-to-list 'default-frame-alist '(font . "9x15"))<br>
<br>
where the 9x15 is the name of the font that you want to use.<br>
<br>
Method 3: Modifying .emacs - setting default-frame-alist<br>
Add the following emacs-lisp code to your .emacs file, modifying as
desired:<br>
<br>
(setq default-frame-alist<br>
'((width . 80)<br>
(height . 40)<br>
(menu-bar-lines . 1)<br>
(background-color . "cornsilk")<br>
(foreground-color . "navy")<br>
(name . "Emacs")<br>
(horizontal-scroll-bars . 1)<br>
(vertical-scroll-bars . 1)<br>
(font . "8x16")<br>
))<br>
<br>
This is the method that I use because I like setting colors and a few
other frame parameters to my liking.<br>
<br>
For list of available fonts, look in the fonts.alias files in
/usr/share/X11/fonts/*/ directories.<br>
<br>
<div class="moz-signature">-- <br>
<div> Steven F. LeBrun<br>
<p>
Quote: <em>"The objection to fairy stories is that they tell children
there are dragons. But children have always known there are dragons.
Fairy stories tell children that dragons can be killed."</em><br>
-- G.K. Chesterton</p>
</div>
</div>
</body>
</html>