--- old/src/solaris/native/sun/awt/fontpath.c 2017-10-19 10:51:13.586722314 +0200 +++ new/src/solaris/native/sun/awt/fontpath.c 2017-10-19 10:51:13.455724259 +0200 @@ -1051,6 +1051,16 @@ CHECK_NULL(fontFileID = (*env)->GetFieldID(env, fcFontClass, "fontFile", "Ljava/lang/String;")); + jclass fontUtilitiesClass = + (*env)->FindClass(env, "sun/font/FontUtilities"); + CHECK_NULL(fontUtilitiesClass); + jfieldID isOpenJDKID = + (*env)->GetStaticFieldID(env, fontUtilitiesClass, "isOpenJDK", "Z"); + CHECK_NULL(isOpenJDKID); + jboolean isOpenJDK = + (*env)->GetStaticBooleanField(env, fontUtilitiesClass, isOpenJDKID); + + if ((libfontconfig = openFontConfig()) == NULL) { return; } @@ -1239,6 +1249,7 @@ && (strcmp((char*)fontformat, "TrueType") != 0) #if defined(__linux__) || defined(_AIX) && (strcmp((char*)fontformat, "Type 1") != 0) + && !(isOpenJDK && (strcmp((char*)fontformat, "CFF") == 0)) #endif ) { continue;