changeset 47464:d5a1cde89944

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
author neugens
date Mon, 30 Oct 2017 13:15:08 +0100
parents fc3ec7e40a12
children 31c2e88afd3e
files src/java.desktop/unix/native/common/awt/fontpath.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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;