Re: New GTK+ anti-aliasing patch posted



Antialiasing is cool, but I don't always want it on all the time.   I
could of course set up certain directories of fonts to be antialiased, and
have others not be.  On the one machine I tried, it didn't do anything
(It's XFree 4.0.2 using nvidia's glx drivers 0.96) so that probably means
my render extension isn't available.

Being able to turn it on or off somehow (globaly) would be something
desirable.  I would expect it in the Gnome API, but I guess you'd need
something in GTK also.

Another thing that may be advantageous is to only anti-alias fonts above a
specific point size.  I find anything below 12 pts and above 9 pts to be
very blurry and hard to read when anti-aliased.  It would be nice to
specify a threshold (low and high) at which anti-aliasing would work.
(even hard coded for now.)

Michael

On Sun, 11 Mar 2001, Bryan O'Sullivan wrote:

> Hi -
>
> After a short night of coding, I've posted an update to my patch
> against GTK+ 1.2.8 that lets it use the Xft library in XFree86 4.0.2
> to render anti-aliased text:
>
>   http://www.speakeasy.org/~bos
>
> Changes since the last update (which was in late January):
>
> - Fixed some problems with gdk_text_extents
>
> - Added runtime check for the RENDER extension
>
> - Some bug fixes
>
> Note: my patch is not the same as Jacob Berkman's independently
> developed patch that does much the same thing.  I have cribbed an
> obviously more-correct snippet from his patch, though :-)
>
> To do:
>
> - Split out dependencies on libXft.so into a separate shared object,
>   so that libgdk.so will run on platforms that don't have Xft yet
>
> - Fix weird bug that causes certain widgets to take up far too much
>   horizontal space (several times the width of the screen)
>
> Once the last two points above are covered, this patch should enable
> many programs that are (this is a bit complex)
>
> * linked against GTK+ 1.2
>
> * to run unmodified (i.e. without need for relinking) on machines that
>   either do or don't have the Xft library present
>
> * and to render using anti-aliased fonts on servers that support the
>   RENDER extension
>
> * and to fall back to normal rendering on servers that do *not* have
>   the RENDER extension.
>
> My goal is to make this set of modifications packageable so that the
> binaries will run happily in all circumstances, and anti-alias text
> whenever they can.
>
> 	<b
>
> _______________________________________________
> gtk-devel-list mailing list
> gtk-devel-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtk-devel-list
>





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]