You are not logged in.
EDIT: It appears as if I was misinformed about a XFont backend being in emacs22, and that it was only in another cvs branch, emacs-unicode-2.
Emacs 22, available for arch as "emacs-cvs" in unstable, has support for Xfont fonts, so it is possible to have nice looking antialiased fonts, for example Bitstream Vera Sans Mono.
It seems I lack the knowledge to get this to work though, so it would be great if someone knows how to get this working!
I have installed "ttf-bitstream-vera", so I should have the fonts, but no matter how I try to get emacs to use them, it claims it can not find them.
Page at emacswiki:
http://www.emacswiki.org/cgi-bin/wiki/XftGnuEmacs
Another page, mostly for ubuntu-users:
http://peadrop.com/blog/2007/01/06/pretty-emacs/
(My failed attempts: I put Emacs.FontBackend: xft in .Xresources, and then run "xrdb -merge ~/.Xresources" to get Emacs to use the XFT backend. Then I try various ways suggested at different places on the web to get the Bitstream fonts to be used - setting Emacs.font in .Xresources, starting Emacs with
emacs --enable-font-backend --font "Bitstream Vera Sans Mono-10"
(--enable-font-backend should be depracated since april 16, but the cvs version I checked out yesterday was from 20070412), setting the font in .emacs with
(set-default-font "Bitstream Vera Sans Mono-14")
but I only get "Font is not defined" or "No fonts match...".)
Last edited by django (2007-04-18 15:42:53)
Offline
I have no idea if this is necessary, but did you try adding /usr/share/fonts/TTF to you fontpath in /etc/X11/xorg.conf?
Stand back, intruder, or i'll blast you out of space! I am Klixon and I don't want any dealings with you human lifeforms. I'm a cyborg!
Offline
Thanks, I had forgotten that, now I at least get the "bitstream vera sans mono" fonts when i do "xlsfonts", maybe I'm on the right track.
Though I still get the same error messages -
"error: Font `Bitstream Vera Sans Mono-14' is not defined".
However, I can now get the bitstream vera fonts listed by xlsfonts, for example by
emacs --font "-bitstream-bitstream vera sans-bold-o-normal--0-0-0-0-p-0-iso8859-15"
The problem is that all the Bitstream Vera Sans Mono fonts that I get in this way are italic for some reason, and they are not antialiased.
Emacs also says "Unknown option `--enable-font-backend'" when I use that option, though it ought to be an option until the cvs version from april 16.
(Emacs version is 22.0.98.1.)
Maybe I'm just lost in all the different CVS versions - emacs22, emacs23 and emacs-unicode-2.
EDIT: It seems it is indeed the case that I was misinformed about this, and that the XFont backend is only in the branch emacs-unicode-2.
emacs-unicode-2 is also in unsupported, so I'll try that instead.
It can be a bit confusing with all the versions:
"The emacs-unicode-2 branch holds what is likely to get merged to HEAD to become the emacs23 development effort; HEAD holds what is going to be released as emacs22, and the EMACS_PRETEST_22… branches are used for the pretest tar releases leading up to the emacs22 release. Once pretest is over, expect an emacs_22 branch for future bug fixes to emacs22, then a merge from emacs-unicode-2 to HEAD and then continued development at that point of emacs23 on HEAD."
Last edited by django (2007-04-18 16:06:23)
Offline
I got some error when I tried to makepkg for emacs-unicode-2, so instead I edited the makepkg for emacs-cvs slightly, and that worked fine.
Here it is, but keep in mind that this is the first time I edit a PKGBUILD file, so it isn't necessarily free from errors.
arch=(i686)
pkgname=emacs-unicode2
pkgver=20070416
pkgrel=3
pkgdesc="Gnu Emacs from CVS"
url="http://www.gnu.org/software/emacs/emacs.html"
license="GPL"
depends=('ncurses' 'libpng' 'libtiff' 'libungif' 'xaw3d')
makedepends=('cvs' 'openssh')
conflicts=('emacs' 'ctags')
provides=('emacs' 'ctags')
source=()
md5sums=()
_cvsroot=":pserver:anonymous@cvs.savannah.gnu.org:/sources"
_cvsmod="emacs"
build() {
cd $startdir/src
if [ -d $_cvsmod/CVS ]; then
cd $_cvsmod
cvs update -d
else
cvs -z3 -d$_cvsroot/$_cvsmod co -r emacs-unicode-2 emacs
cd emacs
fi
./configure --prefix=/usr --with-xpm --with-jpeg --with-tiff --with-gif \
--with-png --with-gtk --enable-font-backend --with-xft
make bootstrap
make || return 1
make prefix=$startdir/pkg/usr install
}Offline
Did you get it (antialiased text in Emacs) working, Django?
Offline