Emacs in Ubuntu Hardy now has anti-aliased fonts

Update, 7 August 2009: the most recent major release of Emacs (v. 23.1) now has the anti-aliased font support. See the Ubuntu elisp PPA, which contains packages for any recent Ubuntu release, or see installation instructions for various other platforms.

The latest emacs-snapshot-gtk packages in Ubuntu Hardy (1:20080228-1) have the Unicode/font changes merged, and now support anti-aliased fonts for the first time.

While I didn't really mind the old bitmap fonts, I have to say that anti-aliasing is gorgeous.

To activate the new fonts, I added the following line to my ~/.Xdefaults:

Emacs.font: Monospace-8

Then, I ensured that the settings in .Xdefaults are being loaded by adding the following to my ~/.xsession:

if [ -f $HOME/.Xdefaults ]; then
  xrdb -merge $HOME/.Xdefaults
fi

6 comments:

  1. Anti-aliased fonts in only a few seconds!

    Thanks very much for the tip....

    ReplyDelete
  2. You do not need your strange config. Just insert the following line to your .emacs.el

    (set-default-font "DejaVu Sans Mono-11")

    Or whatever Font you need. The Font can be copied directly from OpenOffice. The -11 means that 11pt should be used.

    Thanks for the hint.

    I was really sick of compiling emacs all the time.

    ReplyDelete
  3. This comment has been removed by the author.

    ReplyDelete
  4. ref: https://launchpad.net/~ubuntu-elisp/+archive/ppa

    In Hardy, if you install the dev version from launchpad, you get anti-alias fonts and much newer version of emacs. Use Synaptics to add 3rd party repository...

    deb http://ppa.launchpad.net/ubuntu-elisp/ppa/ubuntu hardy main

    install key...

    sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys D62FCE72

    install emacs gtk
    sudo apt-get install emacs-snapshot-gtk

    add to emacs startup file or edit .Xdefaults to change font. Now you have latest version of emacs with gtk and anti-aliased fonts!

    $cat .Xdefaults
    Emacs.font: Monospace-8

    You may or may not have to edit .xession

    ~$ cat .xsession
    if [ -f $HOME/.Xdefaults ]; then
    xrdb -merge $HOME/.Xdefaults
    fi

    exec gnome-session

    ReplyDelete
  5. Don't forget apt-get update

    ReplyDelete