[Users] Gnome 2 Anti-Aliasing

Dave Lyon dave@mahonri.com
27 Jun 2002 13:39:27 -0600


I've never tried putting it in .gnomerc, but it works for me in
/etc/profile (they're supposed to do the same thing). Did you add the
GDK_USE_XFT to your export command?

export (your other variables) GDK_USE_XFT

I also had to make another change in /etc/X11/XftConfig. By default
antialiasing is disabled for sizes 8 through 14. So it may be on for
that tiny font on the nautilus sidebar tabs, but probably nothing else.
That slashdot post referenced this. Here's the rest of it- look for the
part about the default Red Hat setting:


##

First of all, you must enable Xft support (the new font system for X).
This is done by defining the GDK_USE_XFT environment variable before
running a program. The best way to turn this on for the entire desktop
is by defining it in the X startup script (probably ~/.gnomerc,
~/.Xclients or ~/.xinitrc):
#!/bin/bash
export GDK_USE_XFT=1
# set up $PATH and $LD_LIBRARY_PATH if needed
exec gnome-session

After doing this, you may still not see antialiased fonts. For instance,
on Red Hat systems, the default /etc/X11/XftConfig file has the
following lines:
match
    any size < 14
    any size > 8
    edit antialias=false;

which turns off antialiasing for fonts with sizes between 8 and 14. By
commenting out these lines, AA will be enabled for all fonts. If you
have an LCD panel, add a line like the following to /etx/X11/XftConfig
or ~/.xftconfig:
match edit rgba=rgb;

This will turn on ClearType style subpixel antialiasing.

##

On Thu, 2002-06-27 at 13:23, Steven Westbrook wrote:
> 
> I've been reading this thread on Anti-aliasing and I don't seem to be able 
> to get it to work on my laptop.  It's a Redhat 7.3 system with the latest 
> of Gnome 2.0 Ximian developer's releases on it.  
> 
> Here is my .gnomerc:
> 
> GDK_USE_XFT=1
> 
> 
> Here is my .xftconfig
> 
> match edit rgba=rgb;
> 
> 
> Is there anything else I should add or change?
> 
> 
> thanks,
> 
> steve westbrook
> 
> 
> On 27 Jun 2002, Dave Lyon wrote:
> 
> > The post on slashdot on Gnome 2 RC said:
> > ##
> > If you have an LCD panel, add a line like the following to
> > /etx/X11/XftConfig or ~/.xftconfig:
> > match edit rgba=rgb;
> > 
> > This will turn on ClearType style subpixel antialiasing.
> > ##
> > This worked fine on my Dell notebook screen.
> > 
> > 
> > 
> > On Thu, 2002-06-27 at 12:47, Robert Claeson wrote:
> > > On Thu, 2002-06-27 at 20:13, Dan Mills wrote:
> > > 
> > > > Run xmag on some black text you expect to be antialiased.
> > > > 
> > > > * If the text is made up only of black pixels, it is not antialiased.
> > > > * If it's made up of black and grey pixels, it is antialiased.
> > > > * If it is made up of black and color pixels, you have sub-pixel
> > > >   antialiasing enabled.
> > > 
> > > Ouch, AA sure looks awful on my laptop (Thinkpad T23) display after I
> > > added GDK_USE_XFT=1 to my .gnomerc. I just had to remove it, I could
> > > hardly read some of the text.
> > > 
> > > > The last one is useful on lcd screens (laptops, pdas, etc).
> > > 
> > > How do I enable that?
> > > 
> > > -- 
> > > "There was no difference between the behavior of a god and the
> > > operations of
> > > pure chance..."
> > > -- Thomas Pynchon, _Gravity's Rainbow_
> > > 
> > > _______________________________________________
> > > Users maillist  -  Users@ximian.com
> > > http://lists.ximian.com/mailman/listinfo/users
> > 
> 
> 
> _______________________________________________
> Users maillist  -  Users@ximian.com
> http://lists.ximian.com/mailman/listinfo/users
-- 
Dave Lyon
www.mahonri.com