8188030: AWT java apps fail to start when some minimal fonts are present
authorneugens
Mon, 30 Oct 2017 13:15:08 +0100
changeset 47513 d5a1cde89944
parent 47512 fc3ec7e40a12
child 47514 31c2e88afd3e
8188030: AWT java apps fail to start when some minimal fonts are present Summary: Allow using CFF fonts as valid fonts when they are returned by fontconfig during font initialisation. Reviewed-by: prr, serb
src/java.desktop/unix/native/common/awt/fontpath.c
--- a/src/java.desktop/unix/native/common/awt/fontpath.c	Mon Oct 30 15:45:55 2017 +0530
+++ b/src/java.desktop/unix/native/common/awt/fontpath.c	Mon Oct 30 13:15:08 2017 +0100
@@ -1254,6 +1254,7 @@
                 && (strcmp((char*)fontformat, "TrueType") != 0)
 #if defined(__linux__) || defined(_AIX)
                 && (strcmp((char*)fontformat, "Type 1") != 0)
+                && (strcmp((char*)fontformat, "CFF") != 0)
 #endif
              ) {
                 continue;