setDPI(Toolkit.getDefaultToolkit().getScreenResolution());
try { setDPI(Toolkit.getDefaultToolkit().getScreenResolution()); } catch (HeadlessException e) { setDPI(DEFAULT_DPI); }
    public RenderingContext(UserAgentCallback uac) {        setMedia("screen");        setContext(new SharedContext());        getContext().setCtx(this);        this.uac = uac;        getContext().setCss(new StyleReference(uac));        XRLog.render("Using CSS implementation from: " + getContext().getCss().getClass().getName());        setTextRenderer(new Java2DTextRenderer());        setDPI(Toolkit.getDefaultToolkit().getScreenResolution());    }