public Rectangle2D getMaxCharBounds(FontRenderContext frc) {
if (frc == null){
throw new NullPointerException(Messages.getString("awt.00")); //$NON-NLS-1$
}
FontPeerImpl peer = (FontPeerImpl)this.getPeer();
Rectangle2D bounds = peer.getMaxCharBounds(frc);
AffineTransform transform = getTransform();
// !! Documentation doesn't describe meaning of max char bounds
// for the fonts that have rotate transforms. For all transforms
// returned bounds are the bounds of transformed maxCharBounds
// Rectangle2D that corresponds to the font with identity transform.