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

[Test_Bug]: Manual test TestGASPHint.java need to be updated.

    XMLWordPrintable

    Details

    • Subcomponent:
      2d
    • Resolved In Build:
      b18
    • CPU:
      generic
    • OS:
      windows

      Backports

        Description

        Manual test TestGASPHint.java need to be updated as it fails in JDK 11 and above because of unavailability of Lucida Sans font. Details are given below. The test need to be updated to get the available font by iterating the system fonts.
        Details:
        Testsuite name: Regression manual
        Test name(s): java/awt/font/TextLayout/TestGASPHint.html
        Product(s) tested: JDK 11.0.11_b02(64bit)
        OS/architecture: Windows x64/Jtreg4.2 b12

        Instruction:
        When I run this test, a short piece Devanagari text should appear without any artifacts.
        In particular there should be no "empty rectangles" representing the missing
        glyph.

        Actual behavior:
        1) The Devanagari text is not shown and a string of empty rectangles shown refer to Actual.jpg and Expected.jpg.
        2) There is no such issue with JDK 7 or 8.

        Analysis:
        Java was not recognizing Devanagari script and not able to display Devanagari Unicode characters even though the windows machine has an already installed system font(Nirmala UI) which supports Devanagari. But when I added this system font which supports Devanagari(Nirmala UI) in $JDKHOME/conf/fonts/ fontconfig.properties, it displays those Unicode characters correctly. So when we use a logical font like 'DIALOG', Java is not recognizing any supported system fonts available if that font is not mentioned in the default fontconfig.properties supplied along with JDK. But when we create a user defined fontconfig.properties and add our system font there, it just works fine.

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                mvs Manukumar V S
                Reporter:
                mvs Manukumar V S
                Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: