cefpython
cefpython copied to clipboard
is High Dpi supported on off-screen-rendering mode?
The off-screen-rendering mode:

The windows mode:

as we can see, the off-screen-rendering mode is lower resolution than windows handle.
so is there a solution to support High Dpi on off-screen-rendering mode?
and I have try those methods but did not work.
CefEnableHighDPISupport();
command_line->AppendSwitchWithValue("--force-device-scale-factor", "2");
SetRoomLevel(xx);
That switch probably affects only windowed rendering mode. It should not include the "--" at the beginning.
There is CefRenderHandler.GetScreenInfo callback in upstream CEF that we haven't yet exposed. It allows to set device scale factor for off-screen rendering.
When are you calling SetZoomLevel? Every time url origin changes it needs to be called again.