src/java.desktop/unix/classes/sun/font/FcFontConfiguration.java

Print this page

        

@@ -178,11 +178,11 @@
         CompositeFontDescriptor[] cfi = get2DCompositeFontInfo();
         int idx = fontIndex * NUM_STYLES + styleIndex;
         String[] componentFaceNames = cfi[idx].getComponentFaceNames();
         FontDescriptor[] ret = new FontDescriptor[componentFaceNames.length];
         for (int i = 0; i < componentFaceNames.length; i++) {
-            ret[i] = new FontDescriptor(componentFaceNames[i], StandardCharsets.UTF_8.newEncoder(), new int[0]);
+            ret[i] = new FontDescriptor(componentFaceNames[i], StandardCharsets.ISO_8859_1.newEncoder(), new int[0]);
         }
 
         return ret;
     }