One of the things I kept missing in XTerm, compared to Konsole or gnome-terminal, was anti-aliased fonts. But you know what? They are, in fact, supported, as XTerm now — well, I suppose since XFree86 4.0 at least — uses freetype to render text.

So, how to do it? Just add the following lines to your ~/.Xresources file, as we did yesterday with the scrolling stuff:

XTerm*faceName: Bitstream Vera Sans Mono
XTerm*faceSize: 10

You can, of course, choose a different font name or size, but I think these look pretty good (although a bit big, compared to the default fixed font). And since it's using Freetype, you can use any font you like in your terminal! (Although some of them may look really bad.)

As usual, these are also available as command line options; just take a look at the manual page. You may discover other interesting stuff as well.

Go to posts index

Comments from the original Blogger-hosted post: