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

-Dsun.java2d.dpiaware cannot over-ride manifest entry.

XMLWordPrintable

    • 2d
    • x86
    • other

      FULL PRODUCT VERSION :


      ADDITIONAL OS VERSION INFORMATION :
      any Windows Vista or later

      EXTRA RELEVANT SYSTEM CONFIGURATION :
      need high resolution (4k monitor), or high resolution tablet - anything offering more than 96 dpi.

      A DESCRIPTION OF THE PROBLEM :
      The system property

      -Dsun.java2d.dpiaware

      was removed, in favor of setting the 'dpiAware' to true in the manifest of the Java exe(s).

      This is incorrect for a couple of reasons:

      1. The auto-scaling of fonts is only applicable to the Windows SystemLookAndFeel. If you are using a different look and feel, you are going to end of with very tiny fonts.

      2. You cannot override this at the application level using native code, since you cannot override the manifest entry setting.

      3. This is a real problem for WebStart where there may be different look and feels being used. The windows end up being really tiny on a High DPI screen/tablet and are unusable.

      I think the proper fix would be to have the font scaling work with all look and feels when running under windows - and in reality, and high-resolution non-72-96 dpi environment.

      REGRESSION. Last worked in version 7u80

      ADDITIONAL REGRESSION INFORMATION:
      It was this bug fix that broke it:

      https://bugs.openjdk.java.net/browse/JDK-6829055

      that was original changed as part of

      http://bugs.java.com/bugdatabase/view_bug.do?bug_id=6395346

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      run any webstart application on a high resolution tablet that does not use the WindowsSystemLookAndFeel.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      The windows should be scaled automatically.
      ACTUAL -
      They are not scaled, because the manifest tells Windows to disable the auto-scaling

      REPRODUCIBILITY :
      This bug can be reproduced always.

      CUSTOMER SUBMITTED WORKAROUND :
      you need to use a program like 'resource editor' to remove the manifest entry from all of the java executables.

      You need to perform this step after every update.

            prr Philip Race
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: