The Source for Java Technology Collaboration
User: Password:



Romain Guy

Romain Guy's Blog

Sub-pixel Anti Aliasing in Mustang

Posted by gfx on June 06, 2005 at 12:21 AM | Comments (2)

Ever since Microsoft added support for sub pixel anti aliasing in Windows (a well known technology they decided to label ClearType) many people wanted to get it in Swing. Sure we had access to anti-aliased text (and in J2SE 5.0 we could even use the tricky -Dswing.aatext=true to activate it globally) but it was far from good for small font sizes.

Thankfully, Sun's guys did a great job here and recently closed RFE #4726365 Java 2D to support LCD optimized anti-aliased text (sub-pixel resolution). LCD optimized text is even turned on or off according to the host settings.

We can expect a lot of problems at first (like custom components or UI using API not supporting the new AA algorithm) but eventually we'll have nice looking text in our Swing apps.

Mustang is definitely exciting for rich clients developers \o/

Bookmark blog post: del.icio.us del.icio.us Digg Digg DZone DZone Furl Furl Reddit Reddit
Comments
Comments are listed in date ascending order (oldest first) | Post Comment

  • At the time of this writing, the change logs mentions ClearType for the build 39, but the binaries are not yet available ... grrr !

    Posted by: spetrucci on June 06, 2005 at 04:45 AM

  • LCD optimized AA is great, but I would love to see it being integrated into non Gnome desktops in a better way. Linux is not only Gnome, which is something Sun seems to be ignoring for quite some time now. Personally, I use a KDE desktop and find Java just does not integrate with that at all, which is a shame since nobody can force all Java desktops to use one single desktop.

    Posted by: marrs on June 30, 2005 at 02:04 AM





Powered by
Movable Type 3.01D
 Feed java.net RSS Feeds