Using Emacs XFT Support
Enabling Antialiased Fonts for Emacs
Installation and setup
Font anti-aliasing using the Xft library and FreeType fonts is
available with Emacs 23 or later.
First, set the appropriate USE flags – you must have the
Code Listing 1.1: Adding appropriate USE flags
# echo "app-editors/emacs xft" >> /etc/portage/package.use
Now it's time to install Emacs:
Code Listing 1.2: Emerging emacs
# emerge -av app-editors/emacs
You can now use XFT fonts in emacs; try emerging
Code Listing 1.3: Enabling XFT fonts in emacs
$ emacs --font 'Bitstream Vera Sans Mono-12'
If you're happy with this as your default font, set it in your
Code Listing 1.4: Setting the default font for emacs startup
$ echo "Emacs.font: Bitstream Vera Sans Mono-12" >> ~/.Xresources
$ xrdb -merge ~/.Xresources
For more details on Emacs with XFT pretty fonts, see:
The contents of this document, unless otherwise expressly stated, are licensed under the CC-BY-SA-2.5 license. The Gentoo Name and Logo Usage Guidelines apply.