RFC: using system font size instead of querying HiDPI stuff

Keith Curtis keithcu at gmail.com
Wed Jan 28 14:18:29 PST 2015


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.


More information about the LibreOffice mailing list