--- old/src/java.desktop/share/classes/sun/font/FontScaler.java 2018-03-20 11:42:24.701069398 -0700 +++ new/src/java.desktop/share/classes/sun/font/FontScaler.java 2018-03-20 11:42:24.517069401 -0700 @@ -96,12 +96,23 @@ try { @SuppressWarnings("unchecked") Class tmp = (Class) - (!FontUtilities.useT2K ? + ((!FontUtilities.useT2K && !FontUtilities.useLegacy) ? Class.forName("sun.font.FreetypeFontScaler") : Class.forName("sun.font.T2KFontScaler")); scalerClass = tmp; } catch (ClassNotFoundException e) { + try { + @SuppressWarnings("unchecked") + Class tmp = (Class) + Class.forName("sun.font.FreetypeFontScaler"); + scalerClass = tmp; + } catch (ClassNotFoundException e1) { scalerClass = NullFontScaler.class; + } + } finally { + if (FontUtilities.debugFonts()) { + System.out.println("Scaler class="+scalerClass); + } } //NB: rewrite using factory? constructor is ugly way