CairoFont(cairo_t *cr) { mFace = cairo_get_font_face(cr); mFamily = cairo_toy_font_face_get_family(mFace); mSlant = cairo_toy_font_face_get_slant(mFace); mWeight = cairo_toy_font_face_get_weight(mFace); }
static PyObject * toy_font_get_family (PycairoToyFontFace *o) { return PyString_FromString (cairo_toy_font_face_get_family (o->font_face)); }
static VALUE cr_toy_font_face_get_family (VALUE self) { return CSTR2RVAL (cairo_toy_font_face_get_family (_SELF)); }