src/share/native/sun/font/sunFont.c

Print this page




 164                              "(Ljava/awt/geom/Point2D$Float;)V"));
 165      CHECK_NULL(sunFontIDs.pScalerContextFID =
 166          (*env)->GetFieldID(env, tmpClass, "pScalerContext", "J"));
 167 
 168      CHECK_NULL(tmpClass = (*env)->FindClass(env, "sun/font/GlyphList"));
 169      CHECK_NULL(sunFontIDs.glyphListX =
 170          (*env)->GetFieldID(env, tmpClass, "x", "F"));
 171      CHECK_NULL(sunFontIDs.glyphListY =
 172          (*env)->GetFieldID(env, tmpClass, "y", "F"));
 173      CHECK_NULL(sunFontIDs.glyphListLen =
 174          (*env)->GetFieldID(env, tmpClass, "len", "I"));
 175      CHECK_NULL(sunFontIDs.glyphImages =
 176          (*env)->GetFieldID(env, tmpClass, "images", "[J"));
 177      CHECK_NULL(sunFontIDs.glyphListUsePos =
 178          (*env)->GetFieldID(env, tmpClass, "usePositions", "Z"));
 179      CHECK_NULL(sunFontIDs.glyphListPos =
 180          (*env)->GetFieldID(env, tmpClass, "positions", "[F"));
 181      CHECK_NULL(sunFontIDs.lcdRGBOrder =
 182          (*env)->GetFieldID(env, tmpClass, "lcdRGBOrder", "Z"));
 183      CHECK_NULL(sunFontIDs.lcdSubPixPos =
 184          (*env)->GetFieldID(env, tmpClass, "lcdSubPixPos", "Z)"));
 185 
 186      initLCDGammaTables();
 187 
 188      initialisedFontIDs = 1;
 189 }
 190 
 191 JNIEXPORT void JNICALL
 192 Java_sun_font_SunFontManager_initIDs
 193     (JNIEnv *env, jclass cls) {
 194 
 195     initFontIDs(env);
 196 }
 197 
 198 JNIEXPORT FontManagerNativeIDs getSunFontIDs(JNIEnv *env) {
 199 
 200     initFontIDs(env);
 201     return sunFontIDs;
 202 }
 203 
 204 /*




 164                              "(Ljava/awt/geom/Point2D$Float;)V"));
 165      CHECK_NULL(sunFontIDs.pScalerContextFID =
 166          (*env)->GetFieldID(env, tmpClass, "pScalerContext", "J"));
 167 
 168      CHECK_NULL(tmpClass = (*env)->FindClass(env, "sun/font/GlyphList"));
 169      CHECK_NULL(sunFontIDs.glyphListX =
 170          (*env)->GetFieldID(env, tmpClass, "x", "F"));
 171      CHECK_NULL(sunFontIDs.glyphListY =
 172          (*env)->GetFieldID(env, tmpClass, "y", "F"));
 173      CHECK_NULL(sunFontIDs.glyphListLen =
 174          (*env)->GetFieldID(env, tmpClass, "len", "I"));
 175      CHECK_NULL(sunFontIDs.glyphImages =
 176          (*env)->GetFieldID(env, tmpClass, "images", "[J"));
 177      CHECK_NULL(sunFontIDs.glyphListUsePos =
 178          (*env)->GetFieldID(env, tmpClass, "usePositions", "Z"));
 179      CHECK_NULL(sunFontIDs.glyphListPos =
 180          (*env)->GetFieldID(env, tmpClass, "positions", "[F"));
 181      CHECK_NULL(sunFontIDs.lcdRGBOrder =
 182          (*env)->GetFieldID(env, tmpClass, "lcdRGBOrder", "Z"));
 183      CHECK_NULL(sunFontIDs.lcdSubPixPos =
 184          (*env)->GetFieldID(env, tmpClass, "lcdSubPixPos", "Z"));
 185 
 186      initLCDGammaTables();
 187 
 188      initialisedFontIDs = 1;
 189 }
 190 
 191 JNIEXPORT void JNICALL
 192 Java_sun_font_SunFontManager_initIDs
 193     (JNIEnv *env, jclass cls) {
 194 
 195     initFontIDs(env);
 196 }
 197 
 198 JNIEXPORT FontManagerNativeIDs getSunFontIDs(JNIEnv *env) {
 199 
 200     initFontIDs(env);
 201     return sunFontIDs;
 202 }
 203 
 204 /*