Portrait of Edd Dumbill, taken by Giles Turnbull

Subscribe to updates

Feed icon Atom or RSS

or get email updates

What I make

a conference management web application

XTech Conference
a European web technology conference

Emacs font joy

Seems I despaired too soon about not being able to get good-looking fonts in Emacs. Thanks to Duncan Mak I've been able to compile and install an Emacs with anti-aliased fonts on Ubuntu. Here's the recipe:

Screenshot of anti-aliased Xft enable Emacs

Then I had to edit out the build instructions for the -nox variant of Emacs, as it didn't build properly, and to be sure, added this to the Emacs-gtk confflags section of debian/rules :

  emacs_gtk_confflags += --with-xft=yes

After that, fakeroot dpkg-buildpackage -b in the source directory, and some time later, Emacs packages with anti-aliased fonts.

There are some limitations: you need to set the font in your ~/.Xresources file like this:

  Emacs*font: Monospace-8

You may also want to fiddle with the Xft.dpi and Xft.hinting X properties to get the fonts to match your desktop environment.

OK, so it's a bit of effort, but worth it. Hopefully this patch will mature and make its way into future Linux distributions.

blog comments powered by Disqus

You are reading the weblog of Edd Dumbill, writer, programmer, entrepreneur and free software advocate.
Copyright © 2000-2012 Edd Dumbill