HOWTO: Ubuntu, ProFont, Emacs
Submitted by Duncan Bayne on Mon, 2008-03-31 13:26
Here's how to install ProFont on Ubuntu, and change it to be the default font in Emacs. This should work on all flavours of Ubuntu, but I've only tested it on Xubuntu 8.04 and Ubuntu 8.10.
- Download profont-x11.tar.gz from here and save it in your home directory.
- From your home directory, run the following shell commands:
tar -zxvf profont-x11.tar.gz
cd profont-x11
gzip *
sudo cp *.gz /usr/share/fonts/X11/misc
cd /usr/share/fonts/X11/misc
sudo mkfontdir . - Log out and then restart the X server with Ctrl + Alt + Backspace.
- Log in and run Emacs.
- Choose Options -> Customize Emacs -> Browse Customization Groups.
- Expand Emacs -> Faces -> Basic Faces.
- Click the Face link to the left of Default.
- Scroll down in the second buffer until you see Font Family, and enter nil-profont in the text field.
- In the height field, enter 89.
- C-x C-s to save, and your font should immediately change to 9 point ProFont.



Thanks!
Thanks - I've corrected the typo.
Minor Typo, Major Difference !
Font Family is profont or nil-profont; not "profont-nil". Using profont-nil causes emacs' default font family to be used instead; just compare the W; ProFont has the side walls of W vertical rather than slanted (see it with xfontsel). On my Ubuntu, default emacs font has slanted walls on W (as do most non-profont fonts).
Using "profont-nil" selects a font that you could also pick with a shift-click on an emacs frame/window. This is not ProFont.
For ProFont, height=90 and height=89 are the same, and they use ptSz 120 (x 72/100 = 8.64 pixels high), a small-yet-readable font size with pattern and matching font:
or you can use height=80 for the tiny-bit-shorter-but-just-as-wide ptSz=110 profont that is just as readable (110 * 72/100 = 7.92 pixels high):
I'm just learning about these X font name fields.
.Kanat.