Java: FontMetrics sin gráficos

¿Cómo obtener FontMetrics sin usar Graphics? Quiero obtener FontMetrics en constructor, ahora lo hago de esta manera:

BufferedImage bi = new BufferedImage(5, 5, BufferedImage.TYPE_INT_RGB);
FontMetrics fm = bi.getGraphics().getFontMetrics(font);
int width = fm.stringWidth(pattern);
int height = fm.getHeight();

Respuestas a la pregunta(2)

Su respuesta a la pregunta