02.08.08
Setting the default font for Emacs
The same stuff was dealt here while a ago, but the problem came back after I installed a new Fedora. This time, the font specified in .emacs is displayed with wrong anti-alias (I guess.)
Another approach to change font in emacs is given here. This works for the new system as well, and I believe this is a better way now.
Edit ~/.Xdefault. The line in the next needs to be inserted.
Emacs.font: ‘any font name you want from xfontsel’
run ‘xrdb -merge $HOME/.Xdefaults’.
10.27.07
Change emacs font permanently
From CSE HUJI Emacs Fonts HOWTOTo check if some font is available in emacs do following:
1. Switch to *scratch* buffer.
2. Type: (prin1-to-string (x-list-fonts “font-you-whant-to-check or pattern”)).
3. Place the cursor after the last closing paren and hit C-j. List of the names of available fonts matching given pattern will appear in the current buffer (*scratch*).
4. For listing of all available fonts use (prin1-to-string (x-list-fonts “*”)).
Pick one that you want to use and add or edit a line in ~/.Xdefaults
Emacs.font: font-name
These steps are not enough to make a new font in effect. Do the followings.
From How can I change the font for emacs in ubuntu 7.10
Edit~/ .Xdefaults
$ xrdb -merge ~/.Xdefaults
A better way is found.
From Permanent Font Change (~/.emacs)
Add in ~/.emacs :
(setq default-frame-alist '((font . "-font-name-from-xfontsel")))