I'm wondering whether it would speed up things if the FontRenderContext
is done as a static.
static private FontRenderContext IDFRC = new FontRenderContext(null,
true, true);
and in drawString(),
// FontRenderContext frc = new FontRenderContext(new
AffineTransform(), true, true);
// GlyphVector glyphs = awtFont.createGlyphVector(frc, string);
GlyphVector glyphs = awtFont.createGlyphVector(IDFRC, string);
I didn't propose the change in JIRA because I don't know if this would
work properly in a multithread environment like a web server.
Curently, drawString() is used for the standard 14 fonts.
Tilman