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

[TESTBUG] javax/swing/plaf/basic/BasicGraphicsUtils/8132119/bug8132119.java fails on machines without Arial font

    XMLWordPrintable

Details

    • b04
    • linux

    Backports

      Description

        The jdk jtreg test "javax/swing/plaf/basic/BasicGraphicsUtils/8132119/bug8132119.java" tests some
        swing related functionality .
        For some of the tests it relies on a special font .

        The test chooses a font "Arial" in the getFont() method, but in case such a font is not available it falls back to
        fontNames[0] in the coding :

                GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();
                String[] fontNames = ge.getAvailableFontFamilyNames();

        This leads to failing tests because arbitrary fonts cannot be used in some of the subtests.
        Suggested improvements :
        - add warnings in case preferred font Arial is not found
        - provide fallback font choices "Bitstream Charter" and "Dialog" in case Arial is not there;
        those worked on our tests systems as well


        errors we get in case Arial is not available :
        java.lang.RuntimeException: String is not properly drawn!
        java.lang.RuntimeException: Numeric shaper is not used!

        (these issues have been observed on various Linux and AIX machines).

        Attachments

          Issue Links

            Activity

              People

                mbaesken Matthias Baesken
                mbaesken Matthias Baesken
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: