[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
- Previous message: [cairo-commit] pycairo ChangeLog,1.77,1.78
- Next message: [cairo-commit] pycairo/cairo cairomodule.c, 1.17,
1.18 cairogtkmodule.c, 1.13, 1.14 caironumpymodule.c, 1.5,
1.6 pycairo-pattern.c, 1.12, 1.13 pycairo-surface.c, 1.18,
1.19 pycairo-private.h, 1.10, 1.11 pycairo.h, 1.15,
1.16 pycairo-context.c, 1.30, 1.31
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
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 }
};
- Previous message: [cairo-commit] pycairo ChangeLog,1.77,1.78
- Next message: [cairo-commit] pycairo/cairo cairomodule.c, 1.17,
1.18 cairogtkmodule.c, 1.13, 1.14 caironumpymodule.c, 1.5,
1.6 pycairo-pattern.c, 1.12, 1.13 pycairo-surface.c, 1.18,
1.19 pycairo-private.h, 1.10, 1.11 pycairo.h, 1.15,
1.16 pycairo-context.c, 1.30, 1.31
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the cairo-commit
mailing list