Archive for February, 2008

Inconsolata – a nice programming font

Tuesday, February 26th, 2008

My current favorite Emacs*font to work with the new XFT backend is Inconsolata. I’ve tried a few others, but this font is just very clear, not too fat and not too skinny, and it has a slashed zero, as a programming font should.

There’s a debian package too, called “ttf-inconsolata”. ** See update below.

Screenshot:

Inconsolata font

Update: the current debian ttf-inconsolata has a bug somewhere that means you can’t actually use the font. A simple remedy is to install the ttf-inconsolata package and then symlink /usr/share/fonts/truetype/ttf-inconsolata/Inconsolata.ttf to /usr/share/fonts/truetype/ttf-inconsolata/Inconsolata.otf

This may not be technically correct, but it does work.

Also, on my current emacs CVS builds, I need to add the following to my .Xresources to get the anti-aliasing to work reliably:

Emacs.FontBackend: xft

Rambling on Javascript: “Constructors considered mildly confusing”

Monday, February 11th, 2008

In which I poke your eye with the details of prototypes and constructors in JavaScript. Includes pretty diagrams! Read it here:
Constructors considered mildly confusing.

Emacs CVS HEAD (finally) has anti-aliased fonts

Thursday, February 7th, 2008

The emacs-unicode-2 branch has been merged into the main branch. This means really good looking fonts for everyone on X11.

Get it now:


cvs -z3 -d:pserver:anonymous@cvs.savannah.gnu.org:/sources/emacs co

cd emacs

./configure --with-xpm --with-tiff --with-jpeg --with-png --with-freetype --with-xft --with-rsvg --with-gtk --enable-font-backend

make bootstrap

make

sudo make install

There’s no gui interface to select these fonts. I just put the following entry in my .Xresources:

Emacs*font: Monospace-10

Replace “Monospace-10″ with whatever font you like.