< prev index next >

test/javax/swing/plaf/basic/BasicGraphicsUtils/8132119/bug8132119.java

Print this page

        

@@ -39,11 +39,11 @@
 import javax.swing.plaf.basic.BasicGraphicsUtils;
 import javax.swing.plaf.metal.MetalLookAndFeel;
 
 /**
  * @test
- * @bug 8132119 8168992
+ * @bug 8132119 8168992 8169897
  * @author Alexandr Scherbatiy
  * @summary Provide public API for text related methods in SwingBasicGraphicsUtils2
  */
 public class bug8132119 {
 

@@ -278,11 +278,11 @@
     private static Font getFont() {
         GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();
         String[] fontNames = ge.getAvailableFontFamilyNames();
         String fontName = fontNames[0];
         for (String name : fontNames) {
-            if ("Arial".equals(name)) {
+            if ("Serif".equals(name)) {
                 fontName = name;
                 break;
             }
         }
         return new Font(fontName, Font.PLAIN, 28);
< prev index next >