< prev index next >
src/java.desktop/share/native/libfontmanager/freetypeScaler.c
Print this page
@@ -67,11 +67,10 @@
unsigned char* fontData;
unsigned fontDataOffset;
unsigned fontDataLength;
unsigned fileSize;
- TTLayoutTableCache* layoutTables;
} FTScalerInfo;
typedef struct FTScalerContext {
FT_Matrix transform; /* glyph transform, including device transform */
jboolean useSbits; /* sbit usage enabled? */
@@ -249,11 +248,10 @@
error = 1; /* triggers memory freeing unless we clear it */
if (type == TYPE1_FROM_JAVA) { /* TYPE1 */
scalerInfo->fontData = (unsigned char*) malloc(filesize);
scalerInfo->directBuffer = NULL;
- scalerInfo->layoutTables = NULL;
scalerInfo->fontDataLength = filesize;
if (scalerInfo->fontData != NULL) {
bBuffer = (*env)->NewDirectByteBuffer(env,
scalerInfo->fontData,
@@ -854,36 +852,10 @@
}
return ptr_to_jlong(glyphInfo);
}
-
-/*
- * Class: sun_font_FreetypeFontScaler
- * Method: getLayoutTableCacheNative
- * Signature: (J)J
- */
-JNIEXPORT jlong JNICALL
-Java_sun_font_FreetypeFontScaler_getLayoutTableCacheNative(
- JNIEnv *env, jobject scaler, jlong pScaler) {
- FTScalerInfo *scalerInfo = (FTScalerInfo*) jlong_to_ptr(pScaler);
-
- if (scalerInfo == NULL) {
- invalidateJavaScaler(env, scaler, scalerInfo);
- return 0L;
- }
-
- // init layout table cache in font
- // we're assuming the font is a file font and moreover it is Truetype font
- // otherwise we shouldn't be able to get here...
- if (scalerInfo->layoutTables == NULL) {
- scalerInfo->layoutTables = newLayoutTableCache();
- }
-
- return ptr_to_jlong(scalerInfo->layoutTables);
-}
-
/*
* Class: sun_font_FreetypeFontScaler
* Method: disposeNativeScaler
* Signature: (J)V
*/
< prev index next >