< prev index next >

src/java.desktop/share/native/libfontmanager/freetypeScaler.c

Print this page

        

@@ -256,11 +256,11 @@
         if (scalerInfo->fontData != NULL) {
             bBuffer = (*env)->NewDirectByteBuffer(env,
                                               scalerInfo->fontData,
                                               scalerInfo->fontDataLength);
             if (bBuffer != NULL) {
-                (*env)->CallObjectMethod(env, font2D,
+                (*env)->CallVoidMethod(env, font2D,
                                    sunFontIDs.readFileMID, bBuffer);
 
                 error = FT_New_Memory_Face(scalerInfo->library,
                                    scalerInfo->fontData,
                                    scalerInfo->fontDataLength,
< prev index next >