You are not logged in.

#1 2010-05-11 19:42:42

kenshis
Member
Registered: 2008-12-16
Posts: 52

blurry fonts in emacs 23

I have setup emacs 23.1 font to Bitsream Vera Sans Mono 10
did the same to gvim.

On gvim, font is more clear than on emacs. On emacs it looks little bit blurry. I wasn't able to find how to enable/disable anti-alias on emacs to check is it because of that.

http://img218.imageshack.us/img218/4569/emacs.png (see cutCheckCmdLineFlag)

1. how to enable/disable anti-aliasing on emacs?
2. does text looks like this on emacs in general? (because it's emacs smile)

Offline

#2 2010-05-11 20:25:49

Atragor
Member
Registered: 2009-02-28
Posts: 59

Re: blurry fonts in emacs 23

You can change font settings by adding the following lines to ~/.Xdefaults

Xft.antialias: 0
Xft.hinting: 1
Xft.hintstyle: hintfull
Xft.rgba: none
Xft.autohint: 0

Adjust values to fit your needs, run xrdb -merge ~/.Xdefaults and restart emacs to see if something has changed.

Offline

#3 2010-05-12 00:56:37

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: blurry fonts in emacs 23

Atragor wrote:

Xft.autohint: 0

Unfortunately, that's living in the Stone Age, because some fonts look better with autohint, and some don't.

Fontconfig provides this flexibility - see my config. I haven't checked whether it's actually used by the stupid emacs program though smile

I see that emacs can be compiled with e.g.:
--with-x-toolkit=gtk
--with-xft

So you almost certainly want those two, along with something like cairo-ubuntu from AUR, which includes Ubuntu's big font-rendering patch for libXft.

Offline

#4 2010-05-12 15:40:16

kenshis
Member
Registered: 2008-12-16
Posts: 52

Re: blurry fonts in emacs 23

just installed emacs-23.2-1 (which apparently with --with-xft flag, because earlier version didn't react to "Xft.antialias: 0", and now it does). Now fonts looks the same as in gvim.

I still will  try to play with cairo-ubuntu, and Fontconfig to get best possible font rendering.
Thanks (y)

Offline

#5 2010-05-14 08:28:38

Stefan Husmann
Member
From: Germany
Registered: 2007-08-07
Posts: 1,391

Re: blurry fonts in emacs 23

The option --with-x-toolkit should not be relevant here, it only accects the menus, dialog boxes and scrollbars. The --with-xft indeed is relevant.

Offline

Board footer

Powered by FluxBB