[OpenJDK 2D-Dev] [9] Review request for 8076545 Text size is twice bigger under Windows L&F on Win 8.1 with HiDPI display

Jim Graham james.graham at oracle.com
Mon Jul 6 21:11:05 UTC 2015

I'll let someone familiar with how the AWT/Swing use all of those 
metrics respond on whether you've scaled all the right ones, but I 
wanted to make a minor comment about how the scaling is done.

If you inverted it so that scale was 96f/dpi then you could use 
multiplication everywhere instead of division.  Since this code is only 
executed once on startup (I presume) that isn't all that important, but 
if we were to use it in other code on the fly then it might add up. 
(This is not an issue with the fix, just a comment.)


On 7/3/15 10:06 AM, Alexander Scherbatiy wrote:
> Hello,
> Could you review the fix:
>    bug: https://bugs.openjdk.java.net/browse/JDK-8076545
>    webrev: http://cr.openjdk.java.net/~alexsch/8076545/webrev.00
>    Windows L&F fonts and size of components are rescaled according to
> the system DPI.
> Thanks,
> Alexandr.

More information about the 2d-dev mailing list