Thanks for looking into it .
* BTW, did you test on latest ubuntu and solaris? I tested on Ubuntu 16 / Linux ppc64le (test chooses Bitstream Charter) and on Solaris 11 (tests chooses Arial) . The test was fine on both test machines . Best regards, Matthias From: Prasanta Sadhukhan [mailto:[email protected]] Sent: Freitag, 20. Juli 2018 10:57 To: Baesken, Matthias <[email protected]>; [email protected] Subject: Re: <AWT Dev> RFR [XS] : 8207941 : javax/swing/plaf/basic/BasicGraphicsUtils/8132119/bug8132119.java fails on machines without Arial font [testbug] Looks good to me. BTW, did you test on latest ubuntu and solaris? Please add the bugid to the test. Regards Prasanta On 7/20/2018 1:21 PM, Baesken, Matthias wrote: Hello, the test javax/swing/plaf/basic/BasicGraphicsUtils/8132119/bug8132119.java does not work on some of our Linux and AIX machines . Reason is that the test in case of absence of font "Arial" on the system , chooses just the first font from the AvailableFontFamilyNames . 280 private static Font getFont() { 281 GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment(); 282 String[] fontNames = ge.getAvailableFontFamilyNames(); 283 String fontName = fontNames[0]; 284 for (String name : fontNames) { 285 if ("Arial".equals(name)) { 286 fontName = name; 287 break; 288 } 289 } 290 return new Font(fontName, Font.PLAIN, 30); 291 } 292 However this first font might not be a good choice that works with the tests in bug8132119.java . So we better provide some reasonable fallbacks that were available and working on our test systems . Please review this adjustment : http://cr.openjdk.java.net/~mbaesken/webrevs/8207941.0/<http://cr.openjdk.java.net/%7Embaesken/webrevs/8207941.0/> https://bugs.openjdk.java.net/browse/JDK-8207941 Thanks, Matthias
