ivmx/cefpython

New application setting "auto_zooming"

GoogleCodeExporter opened this issue · 3 comments

Currently you can only manually set zooming using Browser.`SetZoomLevel`.

The auto_zooming setting should allow zooming of all pages displayed in the CEF 
browser. We should support two distinct approaches:

1. A fixed zooming by providing a numeric value like 125%, 150%.
2. A string option "use_system_dpi". This would detect OS DPI settings and zoom 
pages accordingly.

An example of auto zooming using OS DPI settings can be copied from PHP Desktop 
(Windows only code):
https://code.google.com/p/phpdesktop/source/browse/phpdesktop-chrome/dpi_aware.c
pp?r=a09cf1528699

What would be an equivalent of detecting Ubuntu DPI settings? You can set it 
in: All Settings > Universal Access > Seeing > Display > Text size.

Original issue reported on code.google.com by czarek.t...@gmail.com on 29 Jul 2014 at 3:32

[deleted comment]

Original comment by czarek.t...@gmail.com on 29 Jul 2014 at 3:32

  • Now blocking: #112
Fixed in revision a07c898cb1df.

See the ApplicationSettings.`auto_zooming` option and the DpiAware wiki page. 
Example usage is in the wxpython.py example on Windows.

Original comment by czarek.t...@gmail.com on 9 Aug 2014 at 4:23

  • Changed state: Fixed