inline.width - inline.margin.left - inline.border.left,
inline.width - inline.margin.left - inline.border.left + 1,
    public static void paintLeftPadding(Context c, LineBox line, InlineBox inline, int padX, int padWidth) {        int padding_yoff = inline.totalTopPadding(c.getCurrentStyle());        int ty = line.getBaseline() - inline.y - inline.height - padding_yoff + line.y;        LineMetrics lm = FontUtil.getLineMetrics(c, inline);        ty += (int) lm.getDescent();        c.translate(padX, ty);        int old_width = inline.width;        int old_height = inline.height;        //sets the inline borders to the current style, so border objects will exist        inline.height += inline.totalVerticalPadding(c.getCurrentStyle());        inline.width = padWidth;        // paint the actual background        //can't use this, too uncontrolled: BoxRendering.paintBackground(c, inline);        //Border margin = c.getCurrentStyle().getMarginWidth(c.getBlockFormattingContext().getWidth(), c.getBlockFormattingContext().getHeight());        Rectangle box = new Rectangle(inline.x + inline.margin.left + inline.border.left,                inline.y + inline.margin.top + inline.border.top,                inline.width - inline.margin.left - inline.border.left,                inline.height - inline.margin.top - inline.border.top - inline.border.bottom - inline.margin.bottom);        // paint the background        Color background_color = BoxRendering.getBackgroundColor(c);        if (background_color != null) {            // skip transparent background            if (!background_color.equals(BackgroundPainter.transparent)) {                //TODO. make conf controlled Uu.p("filling a background");                c.getGraphics().setColor(background_color);                c.getGraphics().fillRect(box.x, box.y, box.width, box.height);            }        }        Rectangle bounds = new Rectangle(inline.x + padX + inline.margin.left,                inline.y + inline.margin.top,                inline.width - inline.margin.left,                inline.height - inline.margin.top - inline.margin.bottom);        BorderPainter.paint(c, bounds, BorderPainter.LEFT + BorderPainter.TOP + BorderPainter.BOTTOM);        inline.width = old_width;        inline.height = old_height;        //c.translate(+padding_xoff, -ty);        c.translate(-padX, -ty);    }