Class Cairo.ToyFontFace

Inheritance graph
Cairo.FontFace Cairo.ToyFontFace
Description

Font faces used in implementation of the Context "toy" font API.


Inherit FontFace

inherit FontFace : FontFace


Method create

Cairo.ToyFontFace Cairo.ToyFontFace(string family, int slant, int weight)

Description

Creates a font face from a triplet of family, slant, and weight.

If family is the zero-length string "", the platform-specific default family is assumed. The default family then can be queried using get_family().

The Context->select_font_face() function uses this to create font faces. See that function for limitations and other details of toy font faces.

Parameter family

a font family name

Parameter slant

the slant for the font

Parameter weight

the weight for the font