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

MonospacedGlyphWidthTest.java failed again

    XMLWordPrintable

    Details

    • Subcomponent:
      2d
    • Resolved In Build:
      b18

      Backports

        Description

        java/awt/font/MonospacedGlyphWidth/MonospacedGlyphWidthTest.java failed in a random test run

        java.lang.RuntimeException: Test Failed: characters have different width!
        at MonospacedGlyphWidthTest.checkChars(MonospacedGlyphWidthTest.java:55)
        at MonospacedGlyphWidthTest.main(MonospacedGlyphWidthTest.java:84)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:115)
        at java.base/java.lang.Thread.run(Thread.java:832)

        It appears to have been run on a system where the native
        platform mapped IPAGothic (ipag.ttf) to be used for monospaced.

        That font is a CJK font where the ascii chars are half the width
        of CJK and many other characters, so the test fails.
        It seems it is just too hard to be sure what you have when
        a logical font is being used.

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                prr Philip Race
                Reporter:
                prr Philip Race
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: