Font font = FontUtil.getFont(c, style, box.getNode());
    public static void paint(Context c, Box box) {        String type = c.css.getStyle(box.getNode()).getStringProperty("list-style-type");        if (type.equals("none")) {            return;        }        if (type.equals("lower-greek")) {            type = "decimal";        }        if (type.equals("decimal-leading-zero")) {            type = "decimal";        }        String image = c.css.getStyle(box.getNode()).getStringProperty("list-style-image");        Image img = null;        if (!image.equals("none")) {            try {                //u.p("loading: " + image);                img = ImageUtil.loadImage(c, image);            } catch (Exception ex) {                u.p(ex);            }            //u.p("image = " + img);            if (img != null) {                int rad = 8;                int baseline = box.height;                c.getGraphics().drawImage(img, box.x - img.getWidth(null) - 2, box.y + baseline / 2 - img.getHeight(null) / 2 + 2, null);                return;            }        }        // prep the color        box.color = c.css.getStyle(box.getRealElement()).getColor();        c.getGraphics().setColor(box.color);                // save the old AntiAliasing setting, then force it on        Object aa_key = c.getGraphics().getRenderingHint(RenderingHints.KEY_ANTIALIASING);        c.getGraphics().setRenderingHint(RenderingHints.KEY_ANTIALIASING,                                           RenderingHints.VALUE_ANTIALIAS_ON);                        // calculations for bullets        int rad = 8;// change this to use the glyph height        int baseline = box.height;// change this to use the real baseline        CalculatedStyle style = c.css.getStyle(box.getRealElement());        Font font = FontUtil.getFont(c, style, box.getNode());        //Font font = FontUtil.getFont(c, box.getRealElement());        int h = FontUtil.lineHeight(c, box.getRealElement());        rad = h / 3;        int x = box.x - rad - rad / 2;        int y = box.y + (h - rad / 2) / 2;        if (type.equals("disc")) {            c.getGraphics().fillOval(x, y, rad, rad);            return;        }        if (type.equals("square")) {            c.getGraphics().fillRect(x, y, rad, rad);            return;        }        if (type.equals("circle")) {            c.getGraphics().drawOval(x, y, rad, rad);            return;        }        // restore the old AntiAliasing setting        c.getGraphics().setRenderingHint(RenderingHints.KEY_ANTIALIASING,                                           aa_key);        // calculations for text        if (type.equals("decimal")) {            drawText(c, box, type);            return;        }        if (type.equals("lower-latin")) {            drawText(c, box, type);            return;        }        if (type.equals("upper-latin")) {            drawText(c, box, type);            return;        }        if (type.equals("lower-roman")) {            drawText(c, box, type);            return;        }        if (type.equals("upper-roman")) {            drawText(c, box, type);            return;        }    }