*/
@Override
public Rectangle2D getStringBounds(Font font, CharacterIterator ci,
int begin, int limit, FontRenderContext frc) {
BDFFont bdfFont = getCompatibleFont(font);
BDFFontContainer container = bdfFont.getContainer();
double width = 0;
double height = 0;
for (char c = ci.setIndex(begin); ci.getIndex() <= limit; c = ci.next()) {
if (c == CharacterIterator.DONE)
break;
BDFGlyph g = container.getGlyph(c);
if (g != null) {
width += g.getDWidth().width;
height = Math.max(g.getDWidth().height, height);
}
}