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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 9
    • 9
    • javafx
    • Windows 7 or 10 with 125% scaling
      JDK 9 + latest FX 9-dev

    • 9

      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

        1. TextSpacing.java
          1 kB
          Kevin Rushforth
        2. TextSpacing.png
          15 kB
          Kevin Rushforth

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

              Created:
              Updated:
              Resolved: