[cairo-commit] pycairo/cairo pycairo-context.c,1.89,1.90

Steve Chaplin commit at pdx.freedesktop.org
Tue Jan 6 19:03:56 PST 2009


Committed by: stevech1097

Update of /cvs/cairo/pycairo/cairo
In directory kemper:/tmp/cvs-serv3249/cairo

Modified Files:
	pycairo-context.c 
Log Message:
'SC'

Index: pycairo-context.c
===================================================================
RCS file: /cvs/cairo/pycairo/cairo/pycairo-context.c,v
retrieving revision 1.89
retrieving revision 1.90
diff -u -d -r1.89 -r1.90
--- pycairo-context.c	10 Dec 2008 08:18:58 -0000	1.89
+++ pycairo-context.c	7 Jan 2009 03:03:53 -0000	1.90
@@ -1108,6 +1108,19 @@
 }
 
 static PyObject *
+pycairo_set_scaled_font(PycairoContext *o, PyObject *args)
+{
+    PycairoScaledFont *f;
+    if (!PyArg_ParseTuple( args, "O!:Context.set_scaled_font",
+                           &PycairoScaledFont_Type, &f))
+        return NULL;
+
+    cairo_set_scaled_font(o->ctx, f->scaled_font);
+    RETURN_NULL_IF_CAIRO_CONTEXT_ERROR(o->ctx);
+    Py_RETURN_NONE;
+}
+
+static PyObject *
 pycairo_set_source (PycairoContext *o, PyObject *args)
 {
     PycairoPattern *p;
@@ -1439,7 +1452,7 @@
     {"set_matrix",      (PyCFunction)pycairo_set_matrix,       METH_VARARGS},
     {"set_miter_limit", (PyCFunction)pycairo_set_miter_limit,  METH_VARARGS},
     {"set_operator",    (PyCFunction)pycairo_set_operator,     METH_VARARGS},
-    /* set_scaled_font - not implemented yet */
+    {"set_scaled_font", (PyCFunction)pycairo_set_scaled_font,  METH_VARARGS},
     {"set_source",      (PyCFunction)pycairo_set_source,       METH_VARARGS},
     {"set_source_rgb",  (PyCFunction)pycairo_set_source_rgb,   METH_VARARGS},
     {"set_source_rgba", (PyCFunction)pycairo_set_source_rgba,  METH_VARARGS},



More information about the cairo-commit mailing list