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).