Hi Juan,
That's cool.
Congratulations on finding the 'magic' combination of bitBlt rules.
I'm not sure where that leaves my bitBlt rule 41. Possibly rendundant.
But unfortunately I don't have much free time to change the FreeType stuff to use your technique.
Maybe one of the Pharo developers can make the necessary changes.
Of course I also added the gamma correction, and the handling of translucent text foreground colours.
So, it may be worth keeping both techniques around for a while.
Cheers, Andy
.
Date: Thu, 21 May 2009 16:46:28 -0300 From: juan@jvuletich.org To: vm-dev@lists.squeakfoundation.org Subject: Re: [Vm-dev] Fwd: [Pharo-project] New Pharo based on core 10309 with antialiased fonts
You can see how well this works by going to http://www.jvuletich.org/Cuis/ and downloading the new Cuis #0204. See how well it does subpixel AA with black and colored text. Change display depth, and see how it adapts to lower display depths. Also play with preferences #subpixelRenderText and #subpixelRenderColorText. All this is done with just one 16bpp glyph for each char/font/size! No extra caches. Just standard rules, colormaps, and thought.
Some screen shots...
Sub pixel AA: http://www.jvuletich.org/Cuis/32BitDisplay-SubPixAA.png . That is the best look. Display at 32 bpp, sub pixel AA. http://www.jvuletich.org/Cuis/16BitDisplay-SubPixAA.png http://www.jvuletich.org/Cuis/08BitDisplay-SubPixAA.png
Whole pixel AA: http://www.jvuletich.org/Cuis/32BitDisplay-WholePixAA.png http://www.jvuletich.org/Cuis/16BitDisplay-WholePixAA.png http://www.jvuletich.org/Cuis/08BitDisplay-WholePixAA.png
For less than 8bpp, no subpixel AA is available: http://www.jvuletich.org/Cuis/04BitDisplay.png http://www.jvuletich.org/Cuis/01BitDisplay.png
I did not include subpixel black and whole pixel color, but it is possible too.
Anyway, people really interested on this should check the code. Besides, playing 5 minutes with Cuis should be good for any squeaker, to realize that Squeak can be nice, simple and fast.
Cheers, Juan Vuletich
_________________________________________________________________ View your Twitter and Flickr updates from one place – Learn more! http://clk.atdmt.com/UKM/go/137984870/direct/01/