public float getGlyphPixelWidth(final char unicodeID) { final Glyph glyph = getGlyph(unicodeID); if (glyph != null) { return glyph.getAdvance(); } // Have to do this the hard / uncached way singleUnicode[0] = unicodeID; if( null == fontRenderContext ) { // FIXME: Never initialized! throw new InternalError("fontRenderContext never initialized!"); } final GlyphVector gv = font.createGlyphVector(fontRenderContext, singleUnicode); return gv.getGlyphMetrics(0).getAdvance(); }