}
// transform the bounds
bounds = at.createTransformedShape(bounds).getBounds2D();
// create the result with the same transformation
Point2D result = at.transform(new Point2D.Double(0, 0), new Point2D.Double());
// space between string and border
double adjustment = (getFont().getSize2D() * 2) / 10;
// add the adjustment