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

Personalized Windows Font Size is not taken into account in Java8u102

    Details

    • Subcomponent:
    • Introduced In Build:
      b03
    • Introduced In Version:
    • Resolved In Build:
      b01
    • CPU:
      x86_64
    • OS:
      windows_7

      Backports

        Description

        FULL PRODUCT VERSION :
        java version "1.8.0_102-ea"
        Java(TM) SE Runtime Environment (build 1.8.0_102-ea-b04)
        Java HotSpot(TM) 64-Bit Server VM (build 25.102-b04, mixed mode)

        ADDITIONAL OS VERSION INFORMATION :
        Microsoft Windows [Versión 6.1.7601]

        A DESCRIPTION OF THE PROBLEM :
        I have personalized window font size to 125%. In Java7 and other versions prior to Java8u102 , my Java application shows font resized in this percent, so this is Ok. But with Java8u102, the same application show small font size, like 100% without taking into account my windows settings.



        REGRESSION. Last worked in version 8u92

        STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
        Simply type and run the following program:

        import javax.swing.JOptionPane;
        import javax.swing.UIManager;

        import junit.framework.TestCase;

        public class TestFonts extends TestCase {


        public void testFont() throws Exception {
        UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
        JOptionPane.showMessageDialog(null, "Testing " + UIManager.getSystemLookAndFeelClassName() + "...");
        }
        }

        Yo will get different results from Java7 for example and Java8u102


        REPRODUCIBILITY :
        This bug can be reproduced always.

        CUSTOMER SUBMITTED WORKAROUND :
        I don't know so far.

          Issue Links

            Activity

            Hide
            alexsch Alexander Scherbatiy (Inactive) added a comment -
            - webrev link: http://cr.openjdk.java.net/~alexsch/8157838/webrev.00/
            - review link: http://mail.openjdk.java.net/pipermail/awt-dev/2016-May/011396.html
            - issue impact: Windows L&F font size is not scaled when personalized window font size is set to 125%
            - fix rational: the fix JDK-8076545 scales Windows L&F font size down so that it was not so big on Windows 10 with Windows scaling level 300%. But it affects Windows 7 and Windows 8.1 with Windows scaling level 125%. The suggested fix is just revert the fix JDK-8076545 for JDK 8u so the behavior was the same as before the fix.
             -risks: minimal
             -suggested testing: run SwingSet2 demo with Windows L&F on Windows 7, 8.1 or 10 with personalized window font size to 125%.
            Show
            alexsch Alexander Scherbatiy (Inactive) added a comment - - webrev link: http://cr.openjdk.java.net/~alexsch/8157838/webrev.00/ - review link: http://mail.openjdk.java.net/pipermail/awt-dev/2016-May/011396.html - issue impact: Windows L&F font size is not scaled when personalized window font size is set to 125% - fix rational: the fix JDK-8076545 scales Windows L&F font size down so that it was not so big on Windows 10 with Windows scaling level 300%. But it affects Windows 7 and Windows 8.1 with Windows scaling level 125%. The suggested fix is just revert the fix JDK-8076545 for JDK 8u so the behavior was the same as before the fix.  -risks: minimal  -suggested testing: run SwingSet2 demo with Windows L&F on Windows 7, 8.1 or 10 with personalized window font size to 125%.
            Show
            vdyakov Victor Dyakov added a comment - Request: http://mail.openjdk.java.net/pipermail/jdk8u-dev/2016-June/005560.html
            Hide
            hgupdate HG Updates added a comment -
            URL: http://hg.openjdk.java.net/jdk8u/jdk8u-dev/jdk/rev/a4a06a4594d2
            User: alexsch
            Date: 2016-06-02 06:37:03 +0000
            Show
            hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk8u/jdk8u-dev/jdk/rev/a4a06a4594d2 User: alexsch Date: 2016-06-02 06:37:03 +0000
            Hide
            afomin Alexander Fomin (Inactive) added a comment -
            AWT Nightly testing for the binaries with the fix is OK. SQE OK to take it to PSU16_03
            Show
            afomin Alexander Fomin (Inactive) added a comment - AWT Nightly testing for the binaries with the fix is OK. SQE OK to take it to PSU16_03
            Hide
            hgupdate HG Updates added a comment -
            URL: http://hg.openjdk.java.net/jdk8u/jdk8u/jdk/rev/a4a06a4594d2
            User: robm
            Date: 2016-06-10 18:29:45 +0000
            Show
            hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk8u/jdk8u/jdk/rev/a4a06a4594d2 User: robm Date: 2016-06-10 18:29:45 +0000

              People

              • Assignee:
                alexsch Alexander Scherbatiy (Inactive)
                Reporter:
                webbuggrp Webbug Group
              • Votes:
                0 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: