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

Corruption of CJK Unified Ideograph character after upgrade to JDK 11

    XMLWordPrintable

Details

    • 2d
    • linux

    Description

      ADDITIONAL OS VERSION INFORMATION:
      Red Hat Enterprise Linux 8

      A DESCRIPTION OF THE PROBLEM:
      After upgrade to JDK 11 "java.awt.Graphics2D.drawString​(String, int, int)" method draws the character "金", whose code point is "U+91D1" from CJK Unified Ideograph Unicode block, incorrectly. The drawn character looks as corrupted. The issue is not reproducible with JDK 8 release family.

      In the test scenario the produced instance of "java.awt.image.BufferedImage" is stored in BMP file using "javax.imageio.ImageWriter" instance. Also the test scenario requires installation of the additional two fonts: "MS PMincho", "SUPMincho" in the JDK.

      EXPECTED VERSUS ACTUAL BEHAVIOR:
      EXPECTED - The correct character is shown on the attached image "NormalChar-LinuxOS-JDK8u331-b09-MSPMincho.bmp".
      ACTUAL - The corrupted character is shown on the attached image "CorruptedChar-LinuxOS-JDK11.0.15+8-MSPMincho.bmp".

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: