[OpenJDK 2D-Dev] Howto re-iterate GlyphList?

Clemens Eisserer linuxhippy at gmail.com
Mon Jul 6 20:51:26 UTC 2009


Sorry for the stupid question, but is it possible to re-iterate a GlyphList?
In my java-level glyph cache, I would like to call getGrayBits (and
later something like this for lcd glyphs) on the GlyphList.
But setGlyphIndex(0) results in a NullPointerException because
metrics[] is not initialized, and if I call getBounds() bevore aborts
because it has been called after setGlyphIndex().

Thank you in advance, Clemens

More information about the 2d-dev mailing list