// !! 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.
// TODO: resolve this issue to return correct bounds
bounds = transform.createTransformedShape(bounds).getBounds2D();
return bounds;
}
public GlyphVector layoutGlyphVector(FontRenderContext frc, char[] chars,