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

Font spacing is incorrect at 125% or 150% scaling on Windows

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: javafx
    • Labels:
    • Environment:

      Windows 7 or 10 with 125% scaling
      JDK 9 + latest FX 9-dev

    • Subcomponent:
    • Introduced In Version:
      9

      Description

      After the fix for JDK-8091832 we will render using non-integer scales on Windows platforms if the UI scale is set to a non-integer value, for example, 125% or 150%. With a non-integer render scale, the font spacing is incorrect in some cases. It looks like an accumulation error possibly caused by rounding or truncating at the wrong point.

      It is most noticeable with smaller fonts and when using gray-scale AA. The attached test program can be used to demonstrate this. When run at 100% or 200% scaling it looks fine. When run with 125% or 150% scaling, the problem shows up. It is most noticeable at 125%.

      If run on a system with a desktop UI scale of 1, you can use the following command to reproduce it:

      $ java -Dglass.win.uiScale=1.25 TextSpacing

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                prr Philip Race
                Reporter:
                kcr Kevin Rushforth
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: