Creates a font face from a triplet of family, slant, and weight. These font faces are used in implementation of the the cairo_t "toy" font API. If family is the zero-length string "", the platform-specific default family is assumed. The default family then can be queried using cairo_toy_font_face_get_family(). The cairo_select_font_face() function uses this to create font faces. See that function for limitations and other details of toy font faces. Since 1.8

class Context


family string

a font family name, encoded in UTF-8

slant cairo_font_slant_t

the slant for the font

weight cairo_font_weight_t

the weight for the font

Return Value

Type: FontFace

a newly created cairo_font_face_t. Free with FontFace.destroy when you are done using it.