--- a/jdk/src/java.desktop/macosx/classes/sun/font/CFont.java Mon Nov 23 14:44:41 2015 +0300
+++ b/jdk/src/java.desktop/macosx/classes/sun/font/CFont.java Mon Nov 23 09:58:44 2015 -0800
@@ -198,6 +198,13 @@
return nativeFontPtr;
}
+ private native long getCGFontPtrNative(long ptr);
+
+ // This digs the CGFont out of the AWTFont.
+ protected synchronized long getPlatformNativeFontPtr() {
+ return getCGFontPtrNative(getNativeFontPtr());
+ }
+
static native void getCascadeList(long nativeFontPtr, ArrayList<String> listOfString);
private CompositeFont createCompositeFont() {