* Create/get the alpha raster used for rendering.
*
* @return the alpha raster
*/
protected final WritableRaster createAlphaRaster() {
final RenderContext ctx = renderCache.getContext();
WritableRaster r = (WritableRaster) ctx.getObject(ALPHA_RASTER);
final int fontSizeUp = (int) (fontMetrics.getFont().getSize() + 0.5);
if ((r == null) || (r.getWidth() < fontSizeUp) || (r.getHeight() < fontSizeUp)) {
r = GlyphRenderer.createRaster(fontSizeUp, fontSizeUp);
ctx.setObject(ALPHA_RASTER, r);
VmUtils.getVm().getCounter(ALPHA_RASTER).inc();
}
return r;
}