seifzadeh / cefpython

Automatically exported from code.google.com/p/cefpython
0 stars 0 forks source link

New application setting "auto_zooming" #128

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago

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

GoogleCodeExporter commented 9 years ago
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