int h = FontUtil.lineHeight(c, box.getRealElement());
int h = FontUtil.lineHeight(c, style);
    private static void drawText(Context c, Box box, String type) {        String text = "";        if (type.equals("decimal")) {            text = box.list_count + ".";        }        if (type.equals("lower-latin")) {            text = toLatin(box.list_count).toLowerCase() + ".";        }        if (type.equals("upper-latin")) {            text = toLatin(box.list_count).toUpperCase() + ".";        }        if (type.equals("lower-roman")) {            text = toRoman(box.list_count).toLowerCase() + ".";        }        if (type.equals("upper-roman")) {            text = toRoman(box.list_count).toUpperCase() + ".";        }        CalculatedStyle style = c.css.getStyle(box.getRealElement());        Font font = FontUtil.getFont(c, style, box.getNode());        LineMetrics lm = font.getLineMetrics(text, ((Graphics2D) c.getGraphics()).getFontRenderContext());        int w = FontUtil.len(c, text, font);        int h = FontUtil.lineHeight(c, box.getRealElement());        int x = box.x - w - 2;        int y = box.y + h;        y -= (int) lm.getDescent();        c.getGraphics().setFont(font);        c.getGraphics().drawString(text, x, y);    }