<AWT Dev> RFR [XS] : 8207941 : javax/swing/plaf/basic/BasicGraphicsUtils/8132119/bug8132119.java fails on machines without Arial font [testbug]

Lindenmaier, Goetz goetz.lindenmaier at sap.com
Tue Jul 24 07:18:37 UTC 2018


Hi Matthias, 

The fix looks good. Thanks for addressing this.

Could you please capitalize the sentences in the comment? 
Don't need a webrev for this.

Best regards,
  Goetz.

> -----Original Message-----
> From: Baesken, Matthias
> Sent: Dienstag, 24. Juli 2018 09:11
> To: Prasanta Sadhukhan <prasanta.sadhukhan at oracle.com>; awt-
> dev at openjdk.java.net
> Cc: Lindenmaier, Goetz <goetz.lindenmaier at sap.com>
> Subject: RE: <AWT Dev> RFR [XS] : 8207941 :
> javax/swing/plaf/basic/BasicGraphicsUtils/8132119/bug8132119.java fails on
> machines without Arial font [testbug]
> 
> Hi, could I have a second review please so that I can push it ?
> 
> 
> 
> Thanks, Matthias
> 
> 
> 
> 
> 
> From: Baesken, Matthias
> Sent: Freitag, 20. Juli 2018 11:11
> To: 'Prasanta Sadhukhan' <prasanta.sadhukhan at oracle.com>; awt-
> dev at openjdk.java.net
> Subject: RE: <AWT Dev> RFR [XS] : 8207941 :
> javax/swing/plaf/basic/BasicGraphicsUtils/8132119/bug8132119.java fails on
> machines without Arial font [testbug]
> 
> 
> 
> 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:prasanta.sadhukhan at oracle.com]
> Sent: Freitag, 20. Juli 2018 10:57
> To: Baesken, Matthias <matthias.baesken at sap.com
> <mailto:matthias.baesken at sap.com> >; awt-dev at openjdk.java.net
> <mailto:awt-dev at openjdk.java.net>
> 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
> 
> 
> 
> 
> 
> 
> 
> 



More information about the awt-dev mailing list