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
--- 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;