--- old/./build.gradle 2018-02-13 15:50:46.582468872 +0530 +++ new/./build.gradle 2018-02-13 15:50:46.374468872 +0530 @@ -1594,7 +1594,6 @@ "--add-exports=java.base/sun.util.logging=javafx.controls", "--add-exports=java.base/sun.util.logging=javafx.fxml", "--add-exports=java.base/sun.util.logging=javafx.graphics", - "--add-exports=java.desktop/sun.font.lookup=javafx.graphics", "--add-exports=java.desktop/sun.print=javafx.graphics", ] --- old/dependencies/java.desktop/module-info.java.extra 2018-02-13 15:50:47.218468872 +0530 +++ new/dependencies/java.desktop/module-info.java.extra 2018-02-13 15:50:47.010468872 +0530 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2015, 2018, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -29,5 +29,4 @@ exports sun.awt.image to javafx.swing; exports sun.java2d to javafx.swing; exports sun.swing to javafx.swing; -exports sun.font.lookup to javafx.graphics; exports sun.print to javafx.graphics; --- old/modules/javafx.graphics/src/main/java/com/sun/javafx/font/PrismFontFactory.java 2018-02-13 15:50:47.802468872 +0530 +++ new/modules/javafx.graphics/src/main/java/com/sun/javafx/font/PrismFontFactory.java 2018-02-13 15:50:47.598468872 +0530 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -157,20 +157,8 @@ } private static String getJDKFontDir() { - try { - Class c = Class.forName("sun.font.lookup.JDKFontLookup"); - Method m = c.getMethod("getJDKFontDir"); - jreFontDir = (String)m.invoke(c); - return jreFontDir; - } catch (Throwable t) { - if (debugFonts) { - System.err.println("Could not get JRE font dir via API"); - t.printStackTrace(); - } - } - return - System.getProperty("java.home","") + File.separator + - "lib" + File.separator + "fonts" + File.separator; + return System.getProperty("java.home","") + File.separator + + "lib" + File.separator + "fonts"; } private static String getNativeFactoryName() {