```{index} single: Cairo::ToyFontFace ``` # Cairo::ToyFontFace ```{pperl-module-badges} Cairo::ToyFontFace ``` ## Functions ### Other Functions #### `create` Creates a font face for a family name selected the simple way (cairo_toy_font_face_create): `Cairo::ToyFontFace->create($family, $slant, $weight)`. `$slant` is one of `normal`, `italic`, `oblique` and `$weight` one of `normal`, `bold`. All three arguments are required; a shorter list croaks with a usage message. Needs libcairo 1.8 or newer. #### `get_family` Returns the family name the face was created with, as a UTF-8 string. #### `get_slant` Returns the face's slant as a nickname string: `normal`, `italic` or `oblique`. #### `get_weight` Returns the face's weight as a nickname string: `normal` or `bold`.