The fix for JDK-8088325 introduced a dependency on sun.font.lookup, which is an internal package of java.desktop, in javafx.graphics.
The following is used by PrismFontFactory to lookup the location of the JDK font directory:
Class<?> c = Class.forName("sun.font.lookup.JDKFontLookup");
In an effort to eliminate the use of internal packages from core module by javafx.* modules we need an alternative solution.
The following is used by PrismFontFactory to lookup the location of the JDK font directory:
Class<?> c = Class.forName("sun.font.lookup.JDKFontLookup");
In an effort to eliminate the use of internal packages from core module by javafx.* modules we need an alternative solution.
- blocks
-
JDK-8195798 ☂ Address dependencies in javafx.* modules on internal APIs of core modules
- Resolved
- relates to
-
JDK-8198752 Figure out how to handle the fallback if fonts are not present in jdk-home/lib/fonts directory
- Open
-
JDK-8088325 FX needs to be aware of JDK module system constraints or layout in locating JDK fonts
- Resolved