Skip to main content

Trick of the Light

Posted by editor on July 26, 2005 at 6:55 AM PDT

Clearing up Java text at the sub-pixel level

When was the last time you used a CRT? Apologies, of course, to anyone still using one of these power-hungry, heat-spewing, desk-monopolizing monsters, but if you can get yourself over to LCD, chances are you'll be happier once you do. Aside from the aforementioned advantages of heat, power and size -- I'm still galled at the beastly 19" and 21" monsters on some of the desktops at the last place I worked -- there is also a certain elegance to the bright, flat LCD screen.

As it turns out, they also offer another intriguing advantage. The layout of red, green and blue color bands within each pixel is simple and predictable, which offers an opportunity for some graphic trickery that can be put to good use.

In today's Featured Article, Chet Haase looks at how the features of LCD monitors can be used to achieve text anti-aliasing at the sub-pixel level, which improves the appearance and readability of onscreen text beyond what can be achieved with regular anti-aliasing. This feature is coming to Java in Mustang, and in
LCD Text: Anti-Aliasing on the Fringe, Chet shows how the effect works.

James Gosling wonders if you're Happily Subversive? in today's Weblogs: "I've been spending the last few days helping figure out what we (Sun) should do about version control for all of our source files. I'd love to hear from folks who have used SubVersion (with or without svk) for multi-million-line code bases with thousands of versions."

Kirill Grouchnikov has some advice on
How to create scalable icons with Java2D:
"Next time, instead of bundling multiple differently-sized versions of the same icon with your application, why not create them with Java2D on the fly?"

JDIC@JavaOne 2005 and Deeper Desktop/Java Integration, George Zhang writes:
Beginning with a late report of JDIC at JavaOne 2005, this article takes an exploration of missing features in the scope of desktop/Java integration and solicits inputs to prioritize them to enable deeper desktop/Java Integration.

In Also in
Java Today

JSF Central editor-in-chief Kito D. Mann's A Week at JavaOne: Spotlight on JSF has a thorough recap of the conference's JSF-related sessions, BoF's and pavilion-floor activities. Reflecting back on Java's 10th anniversary and JSF's recent prominence, he writes: "Has it really been that long since I saw the first applet on a web page and printed out the Java Language Specification? It was a long week, but the energy of the 15,000 attendees was fantastic, and JSF was truly the star of the show. It's quite clear that JSF has a bright future."

While XQuery was designed for querying large document bases, it serves as a fine tool for transforming simple documents as well. In Java theory and practice: Screen-scraping with XQuery Brian Goetz shows you how XQuery can be used effectively as an HTML screen-scraping engine. XQuery is the perfect tool for you if your goal is simplifying complex pages for display on small screens, or extracting elements from multiple pages to aggregate them together on a home-grown portal, or simply extracting data from Web pages because there is no other programmatic way to get the data.

In Projects and
the Mobicents project, the first open-source SLEE implementation, will be the focus of the session Writing VoIP Applications with Service Building Blocks at the Open Source VoIP Communications Summit on September 19, co-located with the Fall VON conference.

A nice trick for JavaDesktop Community developers: Joshua Marinacci's weblog entry Using Java2D to build a Stacked Image Editor shows how to build a multi-layer image editor, using Java2D affine transformations as a simple and efficient alternative to doing a genuine 3D effect.

In today's Forums,
alexanderschunk would like a
Javac compiler option to build Windows native exe:
"For example, if you are using java on a windows platform it should be possible to have a compiler switch that would automatically generate Windows exe files instead of java byte code if the developer so whishes. That would minimize the job for developers to look for other solutions - i.g. writing a batch script, building a jar manifesto etc. - to just passing a compiler option."

Making JAXB just a little more graphical, kirillcool has a
GUI for viewing schema dependencies:
"Visualize your schema dependencies describes a new addition to the JAXB Workshop project. You are most welcome to try it out and suggest ways to improve it."

In today's
News Headlines

Registered users can submit news items for the href=""> News Page using our
news submission
. All submissions go through an editorial review before being
posted to the site. You can also subscribe to the href=""> News RSS

Current and upcoming Java

Registered users can submit event listings for the href=""> Events Page using our href=""> events submission form.
All submissions go through an editorial review before being posted to the

Archives and Subscriptions: This blog is delivered weekdays as
the Java
Today RSS feed
. Also, once this page is no longer featured as the
front page of it will be
archived along with other past issues in the href=""> Archive.

Clearing up Java text at the sub-pixel level