Font font = box.getStyle().getCalculatedStyle().getAWTFont(c);
Font font = box.getStyle().getFont(c);
    private static void drawText(RenderingContext c, BlockBox box, IdentValue listStyle) {        String text = "";        if (listStyle == IdentValue.LOWER_LATIN || listStyle == IdentValue.LOWER_ALPHA) {            text = toLatin(box.list_count).toLowerCase() + ".";        } else if (listStyle == IdentValue.UPPER_LATIN || listStyle == IdentValue.UPPER_ALPHA) {            text = toLatin(box.list_count).toUpperCase() + ".";        } else if (listStyle == IdentValue.LOWER_ROMAN) {            text = toRoman(box.list_count).toLowerCase() + ".";        } else if (listStyle == IdentValue.UPPER_ROMAN) {            text = toRoman(box.list_count).toUpperCase() + ".";        } else if (listStyle == IdentValue.DECIMAL) {            text = box.list_count + ".";        }                text += "  ";        Font font = box.getStyle().getCalculatedStyle().getAWTFont(c);        StrutMetrics strutMetrics = box.getStructMetrics();                int w = FontUtil.len(text, font, c.getTextRenderer(), c.getGraphics());                int x = box.getAbsX() + (int)box.getStyle().getMarginWidth(c).left() - w;        int y = box.getAbsY() + box.ty + strutMetrics.getBaseline();                c.getGraphics().setFont(font);        c.getGraphics().drawString(text, x, y);    }