[cairo-commit] pycairo/cairo pycairo-font.c,1.9,1.10

Steve Chaplin commit at pdx.freedesktop.org
Sat Apr 9 03:15:59 PDT 2005


Committed by: stevech1097

Update of /cvs/cairo/pycairo/cairo
In directory gabe:/tmp/cvs-serv24718/cairo

Modified Files:
	pycairo-font.c 
Log Message:
SC 2005/04/09

Index: pycairo-font.c
===================================================================
RCS file: /cvs/cairo/pycairo/cairo/pycairo-font.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- pycairo-font.c	8 Apr 2005 03:24:49 -0000	1.9
+++ pycairo-font.c	9 Apr 2005 10:15:57 -0000	1.10
@@ -44,7 +44,6 @@
 
     self = PyObject_New(PyCairoFont, &PyCairoFont_Type);
     if (!self) {
-	/*cairo_font_destroy(font);*/
 	cairo_font_face_destroy(font);
 	return NULL;
     }
@@ -58,7 +57,6 @@
 pycairo_font_dealloc(PyCairoFont *self)
 {
     if (self->font)
-	/*cairo_font_destroy(self->font);*/
 	cairo_font_face_destroy(self->font);
     self->font = NULL;
 
@@ -68,21 +66,8 @@
 	PyObject_Del(self);
 }
 
-static PyObject *
-pycairo_font_extents(PyCairoFont *self, PyObject *args)
-{
-    cairo_font_extents_t extents;
-
-    cairo_font_extents (self->font, &extents);
-    return Py_BuildValue("(ddddd)", extents.ascent, extents.descent, 
-			 extents.height, extents.max_x_advance, 
-			 extents.max_y_advance);
-}
-
 
 static PyMethodDef pycairo_font_methods[] = {
-    { "extents", (PyCFunction)pycairo_font_extents, METH_NOARGS },
-    /* TODO { "glyph_extents", (PyCFunction)pycairo_font_extents, METH_VARARGS },*/
     { NULL, NULL, 0 }
 };
 




More information about the cairo-commit mailing list