in reply to Antialiased Fonts

Don't current versions of FreeType do antialiasing automatically? I'm thinking Tk shouldn't need to know or care about the details of font rendering. What OS, distro, and version are you running X on? What version of X?

Update: FreeType does do it, but Tk does need to be involved after all; See hannibal's better explanation below.


$;=sub{$/};@;=map{my($a,$b)=($_,$;);$;=sub{$a.$b->()}} split//,".rekcah lreP rehtona tsuJ";$\=$ ;->();print$/

Replies are listed 'Best First'.
Re: Re: Antialiased Fonts
by batkins (Chaplain) on Sep 11, 2003 at 10:51 UTC
    Linux 2.4.20, Gentoo, XFree 4.3.0. I do have Freetype installed, but it doesn't seem to affect Tk. Do I have to load it as an X module or something? I don't have access to any other Linux boxen to try this on.


    If I were a terrorist I'd mainly be afraid of polar bears. Because at the moment, I'm mainly afraid of polar bears, and I can't really see why that would change.
    - slashdot

      in my limited understanding of how X fonts work --- I belive that the app has to be re-written to take advantage of the font-config(Freetype, etc) package, rather than the standard X11 font system.

      Just having freetype and fontconfig setup doesn't automatically make apps antialiased automatically -- look at xfontsel.

      If someone has altered tk to use fontconfig, then you'd be all set ...

        Not the app specifically, but the toolkit. Qt and GTK had to be patched to support AA fonts (GTK 1.x's method was a hack, GTK 2.x supports it natively)