return offset + start;
}
@Override
public Bounds getCharacterBounds(int offset) {
TextNode textNode = (TextNode)getNode();
// TODO This isn't terribly efficient - either use a character
// iterator or cache the generated string in TextNode#getText()
String text = textNode.getText();
GlyphVector glyphVector = font.createGlyphVector(fontRenderContext, text);
Shape glyphVisualBounds = glyphVector.getGlyphVisualBounds(offset);
Rectangle glyphBounds = glyphVisualBounds.getBounds();
Bounds bounds = new Bounds(glyphBounds.x, 0, glyphBounds.width, getHeight());