toyFontFaceCreate

Creates a font face from a triplet of family, slant, and weight. These font faces are used in implementation of 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.global.toyFontFaceGetFamily.

The cairo.context.Context.selectFontFace function uses this to create font faces. See that function for limitations and other details of toy font faces.

Parameters

family string

a font family name, encoded in UTF-8

slant cairo.types.FontSlant

the slant for the font

weight cairo.types.FontWeight

the weight for the font

Return Value

Type: cairo.font_face.FontFace

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