CalculatedStyle style = c.css.getStyle(LineBreaker.getElement(box.getNode()));
CalculatedStyle style = c.css.getStyle(box.getRealElement());
    public static Rectangle2D getTextBounds(Context c, InlineBox box) {        CalculatedStyle style = c.css.getStyle(LineBreaker.getElement(box.getNode()));        return c.getTextRenderer().getLogicalBounds(c.getGraphics(),                getFont(c, style, box.getNode()), box.getSubstring());    }