[cairo-commit] cairo-java/src/jni org_freedesktop_cairo_Cairo.c, 1.16, 1.17 org_freedesktop_cairo_Matrix.c, 1.1, 1.2 org_freedesktop_cairo_FreetypeFont.c, 1.2, 1.3 org_freedesktop_cairo_PngSurface.c, 1.5, 1.6 org_freedesktop_cairo_Font.c, 1.1, NONE org_freedesktop_cairo_FontFace.c, NONE, 1.1

Jeffrey Morgan commit at pdx.freedesktop.org
Sun Apr 10 17:47:24 PDT 2005


Committed by: kuzman

Update of /cvs/cairo/cairo-java/src/jni
In directory gabe:/tmp/cvs-serv10446/src/jni

Modified Files:
	org_freedesktop_cairo_Cairo.c org_freedesktop_cairo_Matrix.c 
	org_freedesktop_cairo_FreetypeFont.c 
	org_freedesktop_cairo_PngSurface.c 
Added Files:
	org_freedesktop_cairo_FontFace.c 
Removed Files:
	org_freedesktop_cairo_Font.c 
Log Message:
Changes to match upstream API changes

Index: org_freedesktop_cairo_Cairo.c
===================================================================
RCS file: /cvs/cairo/cairo-java/src/jni/org_freedesktop_cairo_Cairo.c,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -d -r1.16 -r1.17
--- org_freedesktop_cairo_Cairo.c	6 Apr 2005 22:35:00 -0000	1.16
+++ org_freedesktop_cairo_Cairo.c	11 Apr 2005 00:47:22 -0000	1.17
@@ -303,18 +303,6 @@
 
 /*
  * Class:     org_freedesktop_cairo_Cairo
- * Method:    cairo_default_matrix
- * Signature: (Lorg/gnu/glib/Handle;)V
- */
-JNIEXPORT void JNICALL Java_org_freedesktop_cairo_Cairo_cairo_1default_1matrix
-  (JNIEnv *env, jclass cls, jobject obj)
-{
-	cairo_t *cr = (cairo_t*)getPointerFromHandle(env, obj);
-	cairo_default_matrix(cr);
-}
-
-/*
- * Class:     org_freedesktop_cairo_Cairo
  * Method:    cairo_identity_matrix
  * Signature: (Lorg/gnu/glib/Handle;)V
  */
@@ -659,41 +647,41 @@
 
 /*
  * Class:     org_freedesktop_cairo_Cairo
- * Method:    cairo_select_font
+ * Method:    cairo_select_font_face
  * Signature: (Lorg/gnu/glib/Handle;Ljava/lang/String;II)V
  */
-JNIEXPORT void JNICALL Java_org_freedesktop_cairo_Cairo_cairo_1select_1font
+JNIEXPORT void JNICALL Java_org_freedesktop_cairo_Cairo_cairo_1select_1font_1face
   (JNIEnv *env, jclass cls, jobject obj, jstring fam, jint slant, jint weight)
 {
 	cairo_t *cr = (cairo_t*)getPointerFromHandle(env, obj);
 	const char* fam_g = (const char*)(*env)->GetStringUTFChars(env, fam, NULL);
-	cairo_select_font(cr, fam_g, (cairo_font_slant_t)slant, (cairo_font_weight_t)weight);
+	cairo_select_font_face(cr, fam_g, (cairo_font_slant_t)slant, (cairo_font_weight_t)weight);
 	(*env)->ReleaseStringUTFChars(env, fam, fam_g);
 }
 
 /*
  * Class:     org_freedesktop_cairo_Cairo
- * Method:    cairo_scale_font
+ * Method:    cairo_set_font_size
  * Signature: (Lorg/gnu/glib/Handle;D)V
  */
-JNIEXPORT void JNICALL Java_org_freedesktop_cairo_Cairo_cairo_1scale_1font
+JNIEXPORT void JNICALL Java_org_freedesktop_cairo_Cairo_cairo_1set_1font_1size
   (JNIEnv *env, jclass cls, jobject obj, jdouble scale)
 {
 	cairo_t *cr = (cairo_t*)getPointerFromHandle(env, obj);
-	cairo_scale_font(cr, scale);
+	cairo_set_font_size(cr, scale);
 }
 
 /*
  * Class:     org_freedesktop_cairo_Cairo
- * Method:    cairo_transform_font
+ * Method:    cairo_set_font_matrix
  * Signature: (Lorg/gnu/glib/Handle;Lorg/gnu/glib/Handle;)V
  */
-JNIEXPORT void JNICALL Java_org_freedesktop_cairo_Cairo_cairo_1transform_1font
+JNIEXPORT void JNICALL Java_org_freedesktop_cairo_Cairo_cairo_1set_1font_1matrix
   (JNIEnv *env, jclass cls, jobject obj, jobject matrix)
 {
 	cairo_t *cr = (cairo_t*)getPointerFromHandle(env, obj);
 	cairo_matrix_t *matrix_g = (cairo_matrix_t*)getPointerFromHandle(env, matrix);
-	cairo_transform_font(cr, matrix_g);
+	cairo_set_font_matrix(cr, matrix_g);
 }
 
 /*
@@ -726,42 +714,42 @@
 
 /*
  * Class:     org_freedesktop_cairo_Cairo
- * Method:    cairo_get_font
+ * Method:    cairo_get_font_face
  * Signature: (Lorg/gnu/glib/Handle;)Lorg/gnu/glib/Handle;
  */
-JNIEXPORT jobject JNICALL Java_org_freedesktop_cairo_Cairo_cairo_1get_1font
+JNIEXPORT jobject JNICALL Java_org_freedesktop_cairo_Cairo_cairo_1get_1font_1face
   (JNIEnv *env, jclass cls, jobject obj)
 {
 	cairo_t *cr = (cairo_t*)getPointerFromHandle(env, obj);
-	return getHandleFromPointer(env, cairo_get_font(cr));
+	return getHandleFromPointer(env, cairo_get_font_face(cr));
 }
 
 /*
  * Class:     org_freedesktop_cairo_Cairo
- * Method:    cairo_get_font_extents
+ * Method:    cairo_font_extents
  * Signature: (Lorg/gnu/glib/Handle;Lorg/gnu/glib/Handle;)V
  */
-JNIEXPORT void JNICALL Java_org_freedesktop_cairo_Cairo_cairo_1get_1font_1extents
+JNIEXPORT void JNICALL Java_org_freedesktop_cairo_Cairo_cairo_1font_1extents
   (JNIEnv *env, jclass cls, jobject obj, jobject extents)
 {
 	cairo_t *cr = (cairo_t*)getPointerFromHandle(env, obj);
 	/* TODO: should i be initializing to NULL? */
 	cairo_font_extents_t *extents_g = (cairo_font_extents_t*)getPointerFromHandle(env, extents);
-	cairo_get_font_extents(cr, extents_g);
+	cairo_font_extents(cr, extents_g);
 	updateHandle(env, extents, extents_g);
 }
 
 /*
  * Class:     org_freedesktop_cairo_Cairo
- * Method:    cairo_set_font
+ * Method:    cairo_set_font_face
  * Signature: (Lorg/gnu/glib/Handle;Lorg/gnu/glib/Handle;)V
  */
-JNIEXPORT void JNICALL Java_org_freedesktop_cairo_Cairo_cairo_1set_1font
+JNIEXPORT void JNICALL Java_org_freedesktop_cairo_Cairo_cairo_1set_1font_1face
   (JNIEnv *env, jclass cls, jobject obj, jobject font)
 {
 	cairo_t *cr = (cairo_t*)getPointerFromHandle(env, obj);
-	cairo_font_t *font_g = (cairo_font_t*)getPointerFromHandle(env, font);
-	cairo_set_font(cr, font_g);
+	cairo_font_face_t *font_g = (cairo_font_face_t*)getPointerFromHandle(env, font);
+	cairo_set_font_face(cr, font_g);
 }
 
 /*

Index: org_freedesktop_cairo_Matrix.c
===================================================================
RCS file: /cvs/cairo/cairo-java/src/jni/org_freedesktop_cairo_Matrix.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- org_freedesktop_cairo_Matrix.c	23 Feb 2005 18:17:52 -0000	1.1
+++ org_freedesktop_cairo_Matrix.c	11 Apr 2005 00:47:22 -0000	1.2
@@ -45,14 +45,13 @@
  * Method:    cairo_matrix_copy
  * Signature: (Lorg/gnu/glib/Handle;Lorg/gnu/glib/Handle;)I
  */
-JNIEXPORT jint JNICALL Java_org_freedesktop_cairo_Matrix_cairo_1matrix_1copy
+JNIEXPORT void JNICALL Java_org_freedesktop_cairo_Matrix_cairo_1matrix_1copy
   (JNIEnv *env, jclass cls, jobject dest, jobject src)
 {
 	cairo_matrix_t *dest_g = (cairo_matrix_t*)getPointerFromHandle(env, dest);
 	cairo_matrix_t *src_g = (cairo_matrix_t*)getPointerFromHandle(env, src);
-	int status = cairo_matrix_copy(dest_g, src_g);
+	cairo_matrix_copy(dest_g, src_g);
 	updateHandle(env, dest, dest_g);
-	return status;
 }
 
 /*
@@ -60,11 +59,11 @@
  * Method:    cairo_matrix_set_identity
  * Signature: (Lorg/gnu/glib/Handle;)I
  */
-JNIEXPORT jint JNICALL Java_org_freedesktop_cairo_Matrix_cairo_1matrix_1set_1identity
+JNIEXPORT void JNICALL Java_org_freedesktop_cairo_Matrix_cairo_1matrix_1set_1identity
   (JNIEnv *env, jclass cls, jobject obj)
 {
 	cairo_matrix_t *matrix = (cairo_matrix_t*)getPointerFromHandle(env, obj);
-	return (jint)cairo_matrix_set_identity(matrix);
+	cairo_matrix_set_identity(matrix);
 }
 
 /*
@@ -72,12 +71,12 @@
  * Method:    cairo_matrix_set_affine
  * Signature: (Lorg/gnu/glib/Handle;DDDDDD)I
  */
-JNIEXPORT jint JNICALL Java_org_freedesktop_cairo_Matrix_cairo_1matrix_1set_1affine
+JNIEXPORT void JNICALL Java_org_freedesktop_cairo_Matrix_cairo_1matrix_1set_1affine
   (JNIEnv *env, jclass cls, jobject obj, jdouble a, jdouble b, jdouble c, jdouble d, 
   		jdouble tx, jdouble ty)
 {
 	cairo_matrix_t *matrix = (cairo_matrix_t*)getPointerFromHandle(env, obj);
-	return (jint)cairo_matrix_set_affine(matrix, a, b, c, d, tx, ty);
+	cairo_matrix_set_affine(matrix, a, b, c, d, tx, ty);
 }
 
 /*
@@ -85,7 +84,7 @@
  * Method:    cairo_matrix_get_affine
  * Signature: (Lorg/gnu/glib/Handle;[D[D[D[D[D[D)I
  */
-JNIEXPORT jint JNICALL Java_org_freedesktop_cairo_Matrix_cairo_1matrix_1get_1affine
+JNIEXPORT void JNICALL Java_org_freedesktop_cairo_Matrix_cairo_1matrix_1get_1affine
   (JNIEnv *env, jclass cls, jobject obj, jdoubleArray a, jdoubleArray b, jdoubleArray c, 
   			jdoubleArray d, jdoubleArray tx, jdoubleArray ty)
 {
@@ -96,14 +95,13 @@
 	double *d_g = (double*)(*env)->GetDoubleArrayElements(env, d, NULL);
 	double *tx_g = (double*)(*env)->GetDoubleArrayElements(env, tx, NULL);
 	double *ty_g = (double*)(*env)->GetDoubleArrayElements(env, ty, NULL);
-	int status = cairo_matrix_get_affine(matrix, a_g, b_g, c_g, d_g, tx_g, ty_g);
+	cairo_matrix_get_affine(matrix, a_g, b_g, c_g, d_g, tx_g, ty_g);
 	(*env)->ReleaseDoubleArrayElements(env, a, a_g, 0);
 	(*env)->ReleaseDoubleArrayElements(env, b, b_g, 0);
 	(*env)->ReleaseDoubleArrayElements(env, c, c_g, 0);
 	(*env)->ReleaseDoubleArrayElements(env, d, d_g, 0);
 	(*env)->ReleaseDoubleArrayElements(env, tx, tx_g, 0);
 	(*env)->ReleaseDoubleArrayElements(env, ty, ty_g, 0);
-	return status;
 }
 
 /*
@@ -111,11 +109,11 @@
  * Method:    cairo_matrix_translate
  * Signature: (Lorg/gnu/glib/Handle;DD)I
  */
-JNIEXPORT jint JNICALL Java_org_freedesktop_cairo_Matrix_cairo_1matrix_1translate
+JNIEXPORT void JNICALL Java_org_freedesktop_cairo_Matrix_cairo_1matrix_1translate
   (JNIEnv *env, jclass cls, jobject obj, jdouble tx, jdouble ty)
 {
 	cairo_matrix_t *matrix = (cairo_matrix_t*)getPointerFromHandle(env, obj);
-	return (jint)cairo_matrix_translate(matrix, tx, ty);
+	cairo_matrix_translate(matrix, tx, ty);
 }
 
 /*
@@ -123,11 +121,11 @@
  * Method:    cairo_matrix_scale
  * Signature: (Lorg/gnu/glib/Handle;DD)I
  */
-JNIEXPORT jint JNICALL Java_org_freedesktop_cairo_Matrix_cairo_1matrix_1scale
+JNIEXPORT void JNICALL Java_org_freedesktop_cairo_Matrix_cairo_1matrix_1scale
   (JNIEnv *env, jclass cls, jobject obj, jdouble sx, jdouble sy)
 {
 	cairo_matrix_t *matrix = (cairo_matrix_t*)getPointerFromHandle(env, obj);
-	return (jint)cairo_matrix_scale(matrix, sx, sy);
+	cairo_matrix_scale(matrix, sx, sy);
 }
 
 /*
@@ -135,11 +133,11 @@
  * Method:    cairo_matrix_rotate
  * Signature: (Lorg/gnu/glib/Handle;D)I
  */
-JNIEXPORT jint JNICALL Java_org_freedesktop_cairo_Matrix_cairo_1matrix_1rotate
+JNIEXPORT JNICALL Java_org_freedesktop_cairo_Matrix_cairo_1matrix_1rotate
   (JNIEnv *env, jclass cls, jobject obj, jdouble rad)
 {
 	cairo_matrix_t *matrix = (cairo_matrix_t*)getPointerFromHandle(env, obj);
-	return (jint)cairo_matrix_rotate(matrix, rad);
+	cairo_matrix_rotate(matrix, rad);
 }
 
 /*
@@ -147,11 +145,11 @@
  * Method:    cairo_matrix_invert
  * Signature: (Lorg/gnu/glib/Handle;)I
  */
-JNIEXPORT jint JNICALL Java_org_freedesktop_cairo_Matrix_cairo_1matrix_1invert
+JNIEXPORT void JNICALL Java_org_freedesktop_cairo_Matrix_cairo_1matrix_1invert
   (JNIEnv *env, jclass cls, jobject obj)
 {
 	cairo_matrix_t *matrix = (cairo_matrix_t*)getPointerFromHandle(env, obj);
-	return (jint)cairo_matrix_invert(matrix);
+	cairo_matrix_invert(matrix);
 }
 
 /*
@@ -159,15 +157,14 @@
  * Method:    cairo_matrix_multiply
  * Signature: (Lorg/gnu/glib/Handle;Lorg/gnu/glib/Handle;Lorg/gnu/glib/Handle;)I
  */
-JNIEXPORT jint JNICALL Java_org_freedesktop_cairo_Matrix_cairo_1matrix_1multiply
+JNIEXPORT void JNICALL Java_org_freedesktop_cairo_Matrix_cairo_1matrix_1multiply
   (JNIEnv *env, jclass cls, jobject dest, jobject one, jobject two)
 {
 	cairo_matrix_t *dest_g = (cairo_matrix_t*)getPointerFromHandle(env, dest);
 	cairo_matrix_t *one_g = (cairo_matrix_t*)getPointerFromHandle(env, one);
 	cairo_matrix_t *two_g = (cairo_matrix_t*)getPointerFromHandle(env, two);
-	int status = cairo_matrix_multiply(dest_g, one_g, two_g);
+	cairo_matrix_multiply(dest_g, one_g, two_g);
 	updateHandle(env, dest, dest_g);
-	return status;
 }
 
 /*
@@ -175,16 +172,15 @@
  * Method:    cairo_matrix_transform_distance
  * Signature: (Lorg/gnu/glib/Handle;[D[D)I
  */
-JNIEXPORT jint JNICALL Java_org_freedesktop_cairo_Matrix_cairo_1matrix_1transform_1distance
+JNIEXPORT void JNICALL Java_org_freedesktop_cairo_Matrix_cairo_1matrix_1transform_1distance
   (JNIEnv *env, jclass cls, jobject obj, jdoubleArray dx, jdoubleArray dy)
 {
 	cairo_matrix_t *matrix = (cairo_matrix_t*)getPointerFromHandle(env, obj);
 	double *dx_g = (double*)(*env)->GetDoubleArrayElements(env, dx, NULL);	
 	double *dy_g = (double*)(*env)->GetDoubleArrayElements(env, dy, NULL);	
-	int status = cairo_matrix_transform_distance(matrix, dx_g, dy_g);
+	cairo_matrix_transform_distance(matrix, dx_g, dy_g);
 	(*env)->ReleaseDoubleArrayElements(env, dx, dx_g, 0);
 	(*env)->ReleaseDoubleArrayElements(env, dy, dy_g, 0);
-	return status;
 }
 
 /*
@@ -192,16 +188,15 @@
  * Method:    cairo_matrix_transform_point
  * Signature: (Lorg/gnu/glib/Handle;[D[D)I
  */
-JNIEXPORT jint JNICALL Java_org_freedesktop_cairo_Matrix_cairo_1matrix_1transform_1point
+JNIEXPORT void JNICALL Java_org_freedesktop_cairo_Matrix_cairo_1matrix_1transform_1point
   (JNIEnv *env, jclass cls, jobject obj, jdoubleArray dx, jdoubleArray dy)
 {
 	cairo_matrix_t *matrix = (cairo_matrix_t*)getPointerFromHandle(env, obj);
 	double *dx_g = (double*)(*env)->GetDoubleArrayElements(env, dx, NULL);	
 	double *dy_g = (double*)(*env)->GetDoubleArrayElements(env, dy, NULL);	
-	int status = cairo_matrix_transform_point(matrix, dx_g, dy_g);
+	cairo_matrix_transform_point(matrix, dx_g, dy_g);
 	(*env)->ReleaseDoubleArrayElements(env, dx, dx_g, 0);
 	(*env)->ReleaseDoubleArrayElements(env, dy, dy_g, 0);
-	return status;
 }
 
 #ifdef __cplusplus

Index: org_freedesktop_cairo_FreetypeFont.c
===================================================================
RCS file: /cvs/cairo/cairo-java/src/jni/org_freedesktop_cairo_FreetypeFont.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- org_freedesktop_cairo_FreetypeFont.c	4 Mar 2005 23:01:41 -0000	1.2
+++ org_freedesktop_cairo_FreetypeFont.c	11 Apr 2005 00:47:22 -0000	1.3
@@ -33,7 +33,7 @@
   (JNIEnv *env, jclass cls, jstring family, jint slant, jint weight, jobject scale)
 {
     const char *family_utf = (*env)->GetStringUTFChars(env, family, NULL);
-    cairo_font_t *font = NULL;
+    cairo_font_face_t *font = NULL;
     FcPattern * pat = NULL;
     int fcslant;
     int fcweight;
@@ -108,7 +108,7 @@
     const char *family_utf = (*env)->GetStringUTFChars(env, family, NULL);
     const char *slant_utf =  (*env)->GetStringUTFChars(env, slant, NULL);
     const char *weight_utf =  (*env)->GetStringUTFChars(env, weight, NULL);
-    cairo_font_t *font = NULL;
+    cairo_font_face_t *font = NULL;
     FcPattern * pat = NULL;
     FT_Error error;
     cairo_matrix_t* s = (cairo_matrix_t*)getPointerFromHandle(env, scale);

Index: org_freedesktop_cairo_PngSurface.c
===================================================================
RCS file: /cvs/cairo/cairo-java/src/jni/org_freedesktop_cairo_PngSurface.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- org_freedesktop_cairo_PngSurface.c	2 Apr 2005 16:07:33 -0000	1.5
+++ org_freedesktop_cairo_PngSurface.c	11 Apr 2005 00:47:22 -0000	1.6
@@ -50,7 +50,7 @@
 {
 	cairo_surface_t *surface_g = (cairo_surface_t*)getPointerFromHandle(env, surface);
 	char *fn = (char*)(*env)->GetStringUTFChars(env, filename, NULL);
-	FILE *f = fopen(fn, "wb");
+	FILE *f = fopen(fn, "w");
 	int result = cairo_surface_write_png(surface_g, f);
 	fclose(f);
 	(*env)->ReleaseStringUTFChars(env, filename, fn);

--- org_freedesktop_cairo_Font.c DELETED ---

--- NEW FILE: org_freedesktop_cairo_FontFace.c ---
/*
 * Java-Gnome Bindings Library
 *
 * Copyright 1998-2004 the Java-Gnome Team, all rights reserved.
 *
 * The Java-Gnome bindings library is free software distributed under
 * the terms of the GNU Library General Public License version 2.
 */

#include <jni.h>
#include <cairo.h>
#include <jg_jnu.h>

#ifndef _Included_org_freedesktop_cairo_FontFace
#define _Included_org_freedesktop_cairo_FontFace
#ifdef __cplusplus
extern "C" {
#endif
/*
 * Class:     org_freedesktop_cairo_FontFace
 * Method:    cairo_font_face_reference
 * Signature: (Lorg/gnu/glib/Handle;)V
 */
JNIEXPORT void JNICALL Java_org_freedesktop_cairo_FontFace_cairo_1font_1face_1reference
  (JNIEnv *env, jclass cls, jobject obj)
{
	cairo_font_face_t *font = (cairo_font_face_t*)getPointerFromHandle(env, obj);
	cairo_font_face_reference(font);
}

/*
 * Class:     org_freedesktop_cairo_FontFace
 * Method:    cairo_font_face_destroy
 * Signature: (Lorg/gnu/glib/Handle;)V
 */
JNIEXPORT void JNICALL Java_org_freedesktop_cairo_FontFace_cairo_1font_1face_1destroy
  (JNIEnv *env, jclass cls, jobject obj)
{
	cairo_font_face_t *font = (cairo_font_face_t*)getPointerFromHandle(env, obj);
	cairo_font_face_destroy(font);
}

///*
// * Class:     org_freedesktop_cairo_FontFace
// * Method:    cairo_font_extents
// * Signature: (Lorg/gnu/glib/Handle;Lorg/gnu/glib/Handle;Lorg/gnu/glib/Handle;)I
// */
//JNIEXPORT jint JNICALL Java_org_freedesktop_cairo_FontFace_cairo_1font_1extents
//  (JNIEnv *env, jclass cls, jobject obj, jobject matrix, jobject extents)
//{
//	cairo_font_t *font = (cairo_font_t*)getPointerFromHandle(env, obj);
//	cairo_matrix_t *matrix_g = (cairo_matrix_t*)getPointerFromHandle(env, matrix);
//	cairo_font_extents_t *extents_g = (cairo_font_extents_t*)getPointerFromHandle(env, extents);
//	int status = cairo_font_extents(font, matrix_g, extents_g);
//	updateHandle(env, extents, extents_g);
//	return status;
//}
//
///*
// * Class:     org_freedesktop_cairo_FontFace
// * Method:    cairo_font_glyph_extents
// * Signature: (Lorg/gnu/glib/Handle;Lorg/gnu/glib/Handle;[Lorg/gnu/glib/Handle;Lorg/gnu/glib/Handle;)V
// */
//JNIEXPORT void JNICALL Java_org_freedesktop_cairo_FontFace_cairo_1font_1glyph_1extents
//  (JNIEnv *env, jclass cls, jobject obj, jobject matrix, jobjectArray glyphs, jobject extents)
//{
//	cairo_font_t *font = (cairo_font_t*)getPointerFromHandle(env, obj);
//	cairo_matrix_t *matrix_g = (cairo_matrix_t*)getPointerFromHandle(env, matrix);
//	cairo_glyph_t *glyphs_g = (cairo_glyph_t*)getPointerArrayFromHandles(env, glyphs);
//	cairo_text_extents_t *extents_g = (cairo_text_extents_t*)getPointerFromHandle(env, extents);
//	int len = (*env)->GetArrayLength(env, glyphs);
//	cairo_font_glyph_extents(font, matrix_g, glyphs_g, len, extents_g);
//	updateHandle(env, extents, extents_g);
//}

#ifdef __cplusplus
}
#endif
#endif




More information about the cairo-commit mailing list