Date: prev next · Thread: first prev next last
2015 Archives by date, by thread · List index


Hi Noel,

I think it would be quite reasonable to change the code to also enable the
HiDPI behavior if the system font is a certain size. I support your change
of direction, but the current code works quite well by detecting DPI from
the OS / DE and so I would only override that logic it the scalefactor was 1
and the system font was large. The relevant routine is
CountDPIScaleFactor():
http://opengrok.libreoffice.org/xref/core/vcl/source/window/window.cxx#834

Another way to go about it would be to "force" the screen DPI to be 192
(ignoring what the OS tells us). I'm not entirely sure of the difference in
behavior between those two scenarios. On my machine, the DPI is 192 and the
scale factor is 2 and everything is therefore consistent.

Another way to go about it would be to add a UI option to manually override
the scale factor and / or screen DPI.

Good luck!

-Keith



--
View this message in context: 
http://nabble.documentfoundation.org/RFC-using-system-font-size-instead-of-querying-HiDPI-stuff-tp4137065p4137973.html
Sent from the Dev mailing list archive at Nabble.com.

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.