--- old/src/java.desktop/macosx/classes/sun/font/CFont.java 2015-11-17 15:39:39.000000000 -0800 +++ new/src/java.desktop/macosx/classes/sun/font/CFont.java 2015-11-17 15:39:39.000000000 -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 listOfString); private CompositeFont createCompositeFont() {