diff options
author | Sven de Marothy <sven@physto.se> | 2006-06-07 23:48:05 +0000 |
---|---|---|
committer | Sven de Marothy <sven@physto.se> | 2006-06-07 23:48:05 +0000 |
commit | 7578c86f2075076c96b8c10b9dae8caae88c3778 (patch) | |
tree | f34c544e47e9f1781ad1438b38d7f8793078fddf /native | |
parent | 3bdee1080e0cd32b2f9077bff7d8c1ed1ae06bc7 (diff) | |
download | classpath-7578c86f2075076c96b8c10b9dae8caae88c3778.tar.gz |
2006-06-08 Sven de Marothy <sven@physto.se>
* gnu/java/awt/peer/gtk/FreetypeGlyphVector.java
(defaultLayout): Do kerning.
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_FreetypeGlyphVector.c
(getKerning): Correct class name, removed unused variable.
Diffstat (limited to 'native')
-rw-r--r-- | native/jni/gtk-peer/gnu_java_awt_peer_gtk_FreetypeGlyphVector.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/native/jni/gtk-peer/gnu_java_awt_peer_gtk_FreetypeGlyphVector.c b/native/jni/gtk-peer/gnu_java_awt_peer_gtk_FreetypeGlyphVector.c index 01315eada..42abd983c 100644 --- a/native/jni/gtk-peer/gnu_java_awt_peer_gtk_FreetypeGlyphVector.c +++ b/native/jni/gtk-peer/gnu_java_awt_peer_gtk_FreetypeGlyphVector.c @@ -115,7 +115,6 @@ Java_gnu_java_awt_peer_gtk_FreetypeGlyphVector_getKerning font = getFont(env, obj); ft_face = pango_fc_font_lock_face( font ); g_assert (ft_face != NULL); - FT_Get_Kerning( ft_face, rightGlyph, leftGlyph, FT_KERNING_DEFAULT, &kern ); pango_fc_font_unlock_face( font ); @@ -123,7 +122,7 @@ Java_gnu_java_awt_peer_gtk_FreetypeGlyphVector_getKerning values[0].d = (jdouble)kern.x/64.0; values[1].d = (jdouble)kern.y/64.0; - cls = (*env)->FindClass (env, "java/awt/geom/Point2D.Double"); + cls = (*env)->FindClass (env, "java/awt/geom/Point2D$Double"); method = (*env)->GetMethodID (env, cls, "<init>", "(DD)V"); return (*env)->NewObjectA(env, cls, method, values); } @@ -136,7 +135,6 @@ Java_gnu_java_awt_peer_gtk_FreetypeGlyphVector_getMetricsNative jdouble *values; jdoubleArray retArray = NULL; PangoFcFont *font; - FT_BBox acbox; font = getFont(env, obj); ft_face = pango_fc_font_lock_face( font ); |