if(clip != null && !(clip instanceof GeneralPath)){
g2d.setClip(new GeneralPath(clip));
}
// Paint the text
TextPainter textPainter = rc.getTextPainter();
if(textPainter != null) {
textPainter.paint(aci, location, anchor, g2d, rc);
}
// g2d.translate(-location.getX(), -location.getY());
}