static PyObject * pycairo_get_font_options (PycairoContext *o) { cairo_font_options_t *options = cairo_font_options_create(); cairo_get_font_options (o->ctx, options); /* there is no reference fn */ return PycairoFontOptions_FromFontOptions (options); }
static PyObject * surface_get_font_options (PycairoSurface *o) { cairo_font_options_t *options = cairo_font_options_create(); cairo_surface_get_font_options (o->surface, options); /* there is no reference fn */ return PycairoFontOptions_FromFontOptions (options); }
static PyObject * font_options_new (PyTypeObject *type, PyObject *args, PyObject *kwds) { return PycairoFontOptions_FromFontOptions (cairo_font_options_create()); }