Xft support for GNU Emacs
From Gentoo Wiki
Enabling antialiased fonts for Emacs
Installation and setup
Note
Font anti-aliasing using the Xft library and FreeType fonts is available with Emacs 23 or later.
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 xft flag.
root #echo "app-editors/emacs xft" >> /etc/portage/package.useNow it's time to install Emacs:
root #emerge --ask app-editors/emacsYou can now use XFT fonts in emacs; try emerging media-fonts/dejavu first.
user $emacs --font 'DejaVu Sans Mono-12'If you're happy with this as your default font, set it in your ~/.Xresources:
user $echo "Emacs.font: DejaVu Sans Mono-12" >> ~/.Xresources
user $xrdb -merge ~/.Xresources
Resources
For more details on Emacs with XFT pretty fonts, see:
- XftGnuEmacs on the Emacs wiki
This article is based on a document formerly found on our main website gentoo.org.
The following people contributed to the original document: Thomas Nichols, Ulrich Müller, Christian Faulhammer
They are listed here as the Wiki history does not allow for any external attribution. If you edit the Wiki article, please do not add yourself here; your contributions are recorded on the history page.