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

9 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
  6. There is definately a lot to know about this issue. I really like all the points you have made.
    onsite mobile repair bangalore
    You have made some decent points there. I checked on the net for additional information about the issue and found most individuals will go along with your views on this web site.
    asus display replacement
    Good post. I learn something new and challenging on websites I stumbleupon every day. It will always be helpful to read articles from other authors and use a little something from their websites.
    huawei display repair bangalore

    ReplyDelete
  7. Hello! I could have sworn I’ve been to this web site before but after looking at some of the posts I realized it’s new to me. Anyhow, I’m certainly pleased I came across it and I’ll be bookmarking it and checking back frequently!
    vivo charging port replacement
    I need to to thank you for this excellent read!! I absolutely loved every little bit of it. I have you bookmarked to look at new stuff you post…
    lg service center Bangalore
    Hi, I do think this is a great blog. I stumbledupon it ;) I am going to come back yet again since I saved as a favorite it. Money and freedom is the best way to change, may you be rich and continue to help others.
    motorola display repair bangalore

    ReplyDelete