< prev index next >

src/java.desktop/unix/classes/sun/awt/FcFontManager.java

Print this page

        

@@ -1,7 +1,7 @@
 /*
- * Copyright (c) 2015, 2019, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
  * under the terms of the GNU General Public License version 2 only, as
  * published by the Free Software Foundation.  Oracle designates this

@@ -75,11 +75,11 @@
             getFontConfigManager().getFontConfigFonts();
         if (fontConfigFonts != null) {
             for (int i=0; i<fontConfigFonts.length; i++) {
                 if ("sans".equals(fontConfigFonts[i].fcFamily) &&
                     0 == fontConfigFonts[i].style) {
-                    info[0] = fontConfigFonts[i].firstFont.fullName;
+                    info[0] = fontConfigFonts[i].firstFont.familyName;
                     info[1] = fontConfigFonts[i].firstFont.fontFile;
                     break;
                 }
             }
         }

@@ -88,11 +88,11 @@
          * up so we don't NPE.
          */
         if (info[0] == null) {
             if (fontConfigFonts != null && fontConfigFonts.length > 0 &&
                 fontConfigFonts[0].firstFont.fontFile != null) {
-                info[0] = fontConfigFonts[0].firstFont.fullName;
+                info[0] = fontConfigFonts[0].firstFont.familyName;
                 info[1] = fontConfigFonts[0].firstFont.fontFile;
             } else {
                 info[0] = "Dialog";
                 info[1] = "/dialog.ttf";
             }
< prev index next >