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

Bad scaling on Windows with large fonts with Java 9ea

    Details

      Backports

        Description

        This is captured from http://stackoverflow.com/questions/41117190/java-9-on-windows-with-large-fonts
        where it says
        ---
        If you set large fonts (for example, 125%, 120 DPI) on Windows, then it looks as if Swing of Java 9 first renders into a smaller image and then scales this image to the screen.

        Text is still properly displayed. But 1 pixel lines are times 1 pixel or 2 pixels strong. A diagonal line is stepped. Icons are rasterized.

          Issue Links

            Activity

            Hide
            scfitch Stephen Fitch added a comment -
            Initial assignment
            Show
            scfitch Stephen Fitch added a comment - Initial assignment
            Hide
            prr Philip Race added a comment -
            To be clear: This is nothing to do with font rendering. What is meant by "large fonts" is that this is
            the term Windows uses in its UI to requesting a larger UI scale for fonts *and everything else*.
            It is because of you go back to XP fonts were the only thing affected by this setting.
            In fact in the screen shots the text looks fine.

            And even the description on stack overflow and in the bug report say this

            >Text is still properly displayed.
            ^^^^^^^^^^^^^^^^^^^^

            One problem is that auto-scaling of icons. There isn't a lot we can do there except I wonder
            if we should be using bi-cubic interpolation for better results.

            The other problem with the lines is likely covered by some other bug ..
            Show
            prr Philip Race added a comment - To be clear: This is nothing to do with font rendering. What is meant by "large fonts" is that this is the term Windows uses in its UI to requesting a larger UI scale for fonts *and everything else*. It is because of you go back to XP fonts were the only thing affected by this setting. In fact in the screen shots the text looks fine. And even the description on stack overflow and in the bug report say this >Text is still properly displayed. ^^^^^^^^^^^^^^^^^^^^ One problem is that auto-scaling of icons. There isn't a lot we can do there except I wonder if we should be using bi-cubic interpolation for better results. The other problem with the lines is likely covered by some other bug ..
            Hide
            vdyakov Victor Dyakov added a comment -
            3/8/2017: The bug fix is still on investigation phase
            Show
            vdyakov Victor Dyakov added a comment - 3/8/2017: The bug fix is still on investigation phase
            Hide
            vdyakov Victor Dyakov added a comment -
            9-critical-watch:
            P2 bug captured from http://stackoverflow.com/questions/41117190/java-9-on-windows-with-large-fonts where it says
            --------
            > If you set large fonts (for example, 125%, 120 DPI) on Windows, then it looks as if Swing of Java 9 first renders into a smaller image and then scales this image to the screen.
            > Text is still properly displayed. But 1 pixel lines are times 1 pixel or 2 pixels strong. A diagonal line is stepped. Icons are rasterized.
            Show
            vdyakov Victor Dyakov added a comment - 9-critical-watch: P2 bug captured from http://stackoverflow.com/questions/41117190/java-9-on-windows-with-large-fonts where it says -------- > If you set large fonts (for example, 125%, 120 DPI) on Windows, then it looks as if Swing of Java 9 first renders into a smaller image and then scales this image to the screen. > Text is still properly displayed. But 1 pixel lines are times 1 pixel or 2 pixels strong. A diagonal line is stepped. Icons are rasterized.
            Show
            alexsch Alexander Scherbatiy (Inactive) added a comment - The proposed fix: http://cr.openjdk.java.net/~alexsch/8174845/webrev.00/ The review thread: http://mail.openjdk.java.net/pipermail/swing-dev/2017-March/007230.html
            Hide
            hgupdate HG Updates added a comment -
            URL: http://hg.openjdk.java.net/jdk9/client/jdk/rev/3556f4cd047b
            User: alexsch
            Date: 2017-03-15 17:43:41 +0000
            Show
            hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/client/jdk/rev/3556f4cd047b User: alexsch Date: 2017-03-15 17:43:41 +0000
            Hide
            hgupdate HG Updates added a comment -
            URL: http://hg.openjdk.java.net/jdk9/jdk9/jdk/rev/3556f4cd047b
            User: lana
            Date: 2017-03-29 21:57:50 +0000
            Show
            hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/jdk9/jdk/rev/3556f4cd047b User: lana Date: 2017-03-29 21:57:50 +0000

              People

              • Assignee:
                alexsch Alexander Scherbatiy (Inactive)
                Reporter:
                shadowbug Shadow Bug
              • Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Due:
                  Created:
                  Updated:
                  Resolved: