Hi-DPI patches for 4.2

Norbert Thiebaud nthiebaud at gmail.com
Tue Mar 11 17:43:07 PDT 2014


for info here is teh different DPI reported by vcl for the same 13'' screen
at different display setting

n_th at Norberts-MacBook-Pro /lo/core$
./instdir/LibreOfficeDev.app/Contents/MacOS/soffice
2014-03-11 19:39:44.065 soffice[270:507] final mnRealDPIX = 91 mnRealDPIY =
91
n_th at Norberts-MacBook-Pro /lo/core$
./instdir/LibreOfficeDev.app/Contents/MacOS/soffice
2014-03-11 19:34:11.715 soffice[267:507] final mnRealDPIX = 113 mnRealDPIY
= 113
n_th at Norberts-MacBook-Pro /lo/core$
./instdir/LibreOfficeDev.app/Contents/MacOS/soffice
2014-03-11 19:32:59.299 soffice[251:507] final mnRealDPIX = 128 mnRealDPIY
= 128
n_th at Norberts-MacBook-Pro /lo/core$
./instdir/LibreOfficeDev.app/Contents/MacOS/soffice
2014-03-11 19:33:31.395 soffice[264:507] final mnRealDPIX = 149 mnRealDPIY
= 149

That is why the so called 'ScaleFactor' which was calculated with

f = E((dpi + 48) / 96)

gave different behavior at different level of display resolutions.. none of
them having anything to do with the retina 'doubling' thing.

The one at 113 is the one said to be best for retina... but in all case 1
point = 4 pixel.. the later two case are 'scaled down to fit the screen' by
the system itself.
none of these value are the actual device ppi.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20140311/b486e9da/attachment.html>


More information about the LibreOffice mailing list