IcedTea graphics

It’s been a crazy month with Sun’s release of the OpenJDK, and Red Hat’s response with the fully-free IcedTea. While my previous Classpath graphics work was interesting, there was always a bit of a cloud hanging over it, knowing that the OpenJDK was going to be released eventually. Now, however, I’ve been able to put some of that experience to use in replacing encumbered OpenJDK code.

Graphics are a major encumberence in the OpenJDK; however the encumbered parts are only critical bits and pieces – not wholesale packages. This makes their replacement all the more difficult; we could throw away all of OpenJDK’s graphics code and completely replace it with Classpath (something I believe Roman Kennke is working on, by plugging Classpath’s GTK peers into the OpenJDK), but I’ve opted to keep as much of the OpenJDK’s X11 code as possible and get that working (including compatibility fixes with colour management and raster creation). If both of our efforts succeed, we’ll have two working toolkits in Linux – pluggable toolkits anybody?

Anyways, I hit a major milestone today as Swing & Java2D work!

Happy face

Anything that deals with fonts still throws exceptions, since I haven’t started replacing libt2k with Freetype, but that’s next on the list. Again, I’m going to try to keep as much of Sun’s OpenJDK code as possible (rather than replacing classes), meaning I’ll be heading into JNI-land. While Freetype isn’t a perfect replacement, I hope to get at least basic font rendering support into IcedTea.

About these ads

5 Responses to “IcedTea graphics”

  1. Dmitri Trembovetski Says:

    > I haven’t started replacing libt2k with Freetype, but that’s next on the list.

    You might want to hold off doing that, as our font guys are very far on the path of integrating Freetype as a plug-in font renderer for openjdk.

    Thanks,
    Dmitri
    Java2D Team

  2. Dmitri Trembovetski Says:

    I’ve also asked the font guys to post a status update
    on font-scaler-dev list (http://mail.openjdk.java.net/mailman/listinfo/font-scaler-dev)..

    Dmitri

  3. Roman Kennke Says:

    This is cool. I wonder, what you actually have added? I think it might be possible to get things working, as long as you don’t touch the encumbered code paths, that is anti-aliased rendering, fonts and path widening. The color stuff is replaced by Classpath code in IcedTea, right?

    Like Dmitri said, I think it’s a good idea to wait with the freetype integration, because the Sunnies are working on that. I chatted with Igor at Fosdem and he said that they are already quite far along the way. I am working on the rasterizer stuff, so you might have a look at path widening or the color management, if you want to avoid dupe work.

  4. markee Says:

    You might like to have a look at the GPL Java font Rasterizer we have been putting together at http://www.jpedal.org/jfl.php for Open/Truetpe fonts in Java

    MArkee

  5. http://aschiana.com.af/ Says:

    Why viewers still use to read news papers when in this technological world everything is existing
    on net?

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


Follow

Get every new post delivered to your Inbox.

%d bloggers like this: