/**
  * Returns the bounds for the character with the maximum bounds in the specified <code>Graphics
  * </code> context.
  *
  * @param context the specified <code>Graphics</code> context
  * @return a <code>Rectangle2D</code> that is the bounding box for the character with the maximum
  *     bounds.
  * @see java.awt.Font#getMaxCharBounds(java.awt.font.FontRenderContext)
  */
 public Rectangle2D getMaxCharBounds(final Graphics context) {
   final Font baseFont = getFont();
   final String name = baseFont.getName();
   final org.pentaho.reporting.libraries.fonts.registry.FontMetrics fontMetrics =
       metaData.getFontMetrics(
           name,
           baseFont.getSize2D(),
           baseFont.isBold(),
           baseFont.isItalic(),
           "UTF-8",
           false,
           false);
   return new Rectangle2D.Double(
       0,
       -StrictGeomUtility.toExternalValue(fontMetrics.getMaxAscent()),
       StrictGeomUtility.toExternalValue(fontMetrics.getMaxCharAdvance()),
       StrictGeomUtility.toExternalValue(
           fontMetrics.getMaxAscent() + fontMetrics.getMaxDescent() + fontMetrics.getLeading()));
 }