Exemple #1
0
 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);
 }
Exemple #2
0
static PyObject *
toy_font_get_family (PycairoToyFontFace *o)
{
    return PyString_FromString (cairo_toy_font_face_get_family (o->font_face));
}
Exemple #3
0
static VALUE
cr_toy_font_face_get_family (VALUE self)
{
  return CSTR2RVAL (cairo_toy_font_face_get_family (_SELF));
}