I’m going to remove AWT font rendering shortly so I wouldn’t worry. -- John
On 2 Jul 2014, at 08:22, Tilman Hausherr <[email protected]> wrote: > 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
