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

[Windows] Incorrect mapping from font file to GDI font results in the wrong glyphs being displayed

XMLWordPrintable

    • 2d
    • windows_10

      FULL PRODUCT VERSION :
      JDK 8u161 b12

      ADDITIONAL OS VERSION INFORMATION :
      MS Windows 10 OS

      A DESCRIPTION OF THE PROBLEM :
      When Microsoft ClearType font technology is switched on, Swing UI components for example JLabel display incorrect random characters instead of the required text. Switching off MS ClearType font technology through the application "C:\Windows\System32\cttune.exe" before running the Java application allows to resolve the issue.

      Original screenshot from the bug filer which demonstrates the issue is available as the attached file "text_garbled.png".

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      1. Install all Roboto fonts from the archive "Roboto-fonts.zip" attached to the bug JDK-8236996 in alphabetical order in OS. Run "File Explorer" standard OS application, go to the directory of the unpacked archive, right-click on the font file and select "Install".
      2. Compile and run the attached test case "TestClearText.java".

            alitvinov Anton Litvinov (Inactive)
            shadowbug Shadow Bug
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: