c.getGraphics().setFont(c.getCurrentFont());
c.getGraphics().setFont(inline.getStyle().getFont(c.getCtx()));
    public static void paintText(Context c, int ix, int iy, InlineTextBox inline, LineMetrics lm) {        String text = inline.getSubstring();        Graphics g = c.getGraphics();        //adjust font for current settings        Font oldfont = c.getGraphics().getFont();        c.getGraphics().setFont(c.getCurrentFont());        Color oldcolor = c.getGraphics().getColor();        c.getGraphics().setColor(c.getCurrentStyle().getColor());        //baseline is baseline! iy -= (int) lm.getDescent();        //draw the line        if (text != null && text.length() > 0) {            c.getTextRenderer().drawString(c.getGraphics(), text, ix, iy);        }        c.getGraphics().setColor(oldcolor);        if (c.debugDrawFontMetrics()) {            g.setColor(Color.red);            g.drawLine(ix, iy, ix + inline.getWidth(), iy);            iy += (int) Math.ceil(lm.getDescent());            g.drawLine(ix, iy, ix + inline.getWidth(), iy);            iy -= (int) Math.ceil(lm.getDescent());            iy -= (int) Math.ceil(lm.getAscent());            g.drawLine(ix, iy, ix + inline.getWidth(), iy);        }        // restore the old font        c.getGraphics().setFont(oldfont);    }