< prev index next >

modules/web/src/main/native/Source/WebCore/platform/graphics/java/FontDataJava.cpp

Print this page

        

@@ -29,10 +29,16 @@
         "getXHeight", "()F");
     ASSERT(getXHeight_mID);
     m_fontMetrics.setXHeight(env->CallFloatMethod(*jFont, getXHeight_mID));
     CheckAndClearException(env);
 
+    static jmethodID getCapHeight_mID = env->GetMethodID(PG_GetFontClass(env),
+        "getCapHeight", "()F");
+    ASSERT(getCapHeight_mID);
+    m_fontMetrics.setCapHeight(env->CallFloatMethod(*jFont, getCapHeight_mID));
+    CheckAndClearException(env);
+
     static jmethodID getAscent_mID = env->GetMethodID(PG_GetFontClass(env),
         "getAscent", "()F");
     ASSERT(getAscent_mID);
     m_fontMetrics.setAscent(env->CallFloatMethod(*jFont, getAscent_mID));
     CheckAndClearException(env);
< prev index next >