}
private void renderFontBook(HttpServletRequest req, String font,
int fontWeight, int fontSize, double angle, Color color,
ServletOutputStream out) throws IOException {
RenderedFontMetrics rfm = getRenderedFontMetrics(req, font,
fontWeight == Font.PLAIN ? "normal" : "bold", fontSize + "pt",
toHex(color), (float) angle);
int width = rfm.maxBoundsWidth * 16;
int lineHeight = rfm.maxBoundsHeight;