public void dispose()
	{
		if (disposed)
			return;

		disposed = true;
		charCache = null;
		bufferPixels = null;
		fontMetrics = null;
		Graphics2D gfx = bufferGraphics;
		if (gfx != null)
		{
			bufferGraphics = null;
			try
			{
				gfx.dispose();
			}
			catch (Exception ex) { }
		}
		BufferedImage img = buffer;
		if (img != null)
		{
			buffer = null;
			try
			{
				img.flush();
			}
			catch (Exception ex) { }
		}
	}