iy -= (int) lm.getDescent();
    public static void paintText(Context c, int lx, int ly, int ix, int iy, InlineTextBox inline) {        String text = inline.getSubstring();        Graphics g = c.getGraphics();        //adjust font for current settings        Font oldfont = c.getGraphics().getFont();        c.getGraphics().setFont(FontUtil.getFont(c));        Color oldcolor = c.getGraphics().getColor();        c.getGraphics().setColor(c.getCurrentStyle().getColor());        Font cur_font = c.getGraphics().getFont();        LineMetrics lm = c.getTextRenderer().getLineMetrics(c.getGraphics(), cur_font, text);        iy -= (int) lm.getDescent();                //draw the line        if (text != null && text.length() > 0) {            c.getTextRenderer().drawString(c.getGraphics(), text, ix, iy);        }        //draw any text decoration        int stringWidth = (int) Math.ceil(c.getTextRenderer().                getLogicalBounds(c.getGraphics(),                        c.getGraphics().getFont(),                        text).getWidth());        // override based on settings        String text_decoration = c.getCurrentStyle().getStringProperty(CSSName.TEXT_DECORATION);        if (text_decoration != null && text_decoration.equals("underline")) {            float down = lm.getUnderlineOffset();            float thick = lm.getUnderlineThickness();            g.fillRect(ix, iy - (int) down, stringWidth, (int) thick);        } else if (text_decoration != null && text_decoration.equals("line-through")) {            float down = lm.getStrikethroughOffset();            float thick = lm.getStrikethroughThickness();            g.fillRect(ix, iy + (int) down, stringWidth, (int) thick);        } else if (text_decoration != null && text_decoration.equals("overline")) {            float down = lm.getAscent();            float thick = lm.getUnderlineThickness();            g.fillRect(ix, iy - (int) down, stringWidth, (int) thick);        }        c.getGraphics().setColor(oldcolor);        if (c.debugDrawFontMetrics()) {            g.setColor(Color.red);            g.drawLine(ix, iy, ix + inline.width, iy);            iy += (int) Math.ceil(lm.getDescent());            g.drawLine(ix, iy, ix + inline.width, iy);            iy -= (int) Math.ceil(lm.getDescent());            iy -= (int) Math.ceil(lm.getAscent());            g.drawLine(ix, iy, ix + inline.width, iy);        }        // restore the old font        c.getGraphics().setFont(oldfont);    }