Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8129862

Windows Hi-DPI scaling leads to blurry text at 125% (120 dpi)

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: 8u60
    • Fix Version/s: 9
    • Component/s: javafx

      Backports

        Description

        Hi-DPI scaling on systems with the Windows scale factor set to 125% (which is 120 DPI) leads to blurry text.

        We should consider setting the default threshold for Hi-DPI scaling to 150%. If we do, then we very likely need to fix JDK-8087793 as well or the default system font and any controls that are sized in ems will be smaller than it currently is in 8u40.

          Issue Links

            Activity

            Hide
            kcr Kevin Rushforth added a comment -
            I think we have the following options for 8u60, since anything else seems too risky given that we are running very short of time for 8u60:

            A) Do nothing for 8u60 and address this issue in 9
            This will lead to blurry text when run on systems with the Windows scale set to 125%

            B) Set the default threshold to 150% leaving the default font unscaled even when Hi-DPI not used (that is, don't fix JDK-8087793)
            This will resolve the blurry text when run on systems with the Windows scale set to 125%, but applications that use the default font size or use controls sized in ems (which they are with the default Modena CSS style) will now appear smaller than they were with 8u40. This smaller font size could be perceived as a regression.

            C) Set the default threshold to 150% and scale the default font when Hi-DPI is not used (that is, also fix JDK-8087793)
            This will resolve the blurry text and revert the behavior when running on on systems with the Windows scale set to 125% to that of 8u40, but has the (existing) oddity that controls and default font are scaled whereas images and graphics are not.

            The only other option I can see is to set the default threshold to 200% (with or without fixing JDK-8087793) but that seems extreme.
            Show
            kcr Kevin Rushforth added a comment - I think we have the following options for 8u60, since anything else seems too risky given that we are running very short of time for 8u60: A) Do nothing for 8u60 and address this issue in 9 This will lead to blurry text when run on systems with the Windows scale set to 125% B) Set the default threshold to 150% leaving the default font unscaled even when Hi-DPI not used (that is, don't fix JDK-8087793 ) This will resolve the blurry text when run on systems with the Windows scale set to 125%, but applications that use the default font size or use controls sized in ems (which they are with the default Modena CSS style) will now appear smaller than they were with 8u40. This smaller font size could be perceived as a regression. C) Set the default threshold to 150% and scale the default font when Hi-DPI is not used (that is, also fix JDK-8087793 ) This will resolve the blurry text and revert the behavior when running on on systems with the Windows scale set to 125% to that of 8u40, but has the (existing) oddity that controls and default font are scaled whereas images and graphics are not. The only other option I can see is to set the default threshold to 200% (with or without fixing JDK-8087793 ) but that seems extreme.
            Hide
            kcr Kevin Rushforth added a comment -
            Based on feedback from original reporter of problem, and comments from Phil, I am raising this to P2. Also, it is a regression compared to 8u40, so I am adding the regression label.
            Show
            kcr Kevin Rushforth added a comment - Based on feedback from original reporter of problem, and comments from Phil, I am raising this to P2. Also, it is a regression compared to 8u40, so I am adding the regression label.
            Show
            flar Jim Graham (Inactive) added a comment - http://cr.openjdk.java.net/~flar/JDK-8129862/webrev.00/
            Hide
            kcr Kevin Rushforth added a comment -
            +1

            OK to take in 8u60
            Show
            kcr Kevin Rushforth added a comment - +1 OK to take in 8u60
            Show
            kcr Kevin Rushforth added a comment - http://hg.openjdk.java.net/openjfx/9-dev/rt/rev/4f1b910a726b

              People

              • Assignee:
                flar Jim Graham (Inactive)
                Reporter:
                kcr Kevin Rushforth
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: