Learn R Programming

RGtk2 (version 2.8.8)

cairoSelectFontFace: cairoSelectFontFace

Description

Selects a family and style of font from a simplified description as a family name, slant and weight. This function is meant to be used only for applications with simple font needs: Cairo doesn't provide for operations such as listing all available fonts on the system, and it is expected that most applications will need to use a more comprehensive font handling and text layout library in addition to cairo.

Usage

cairoSelectFontFace(cr, family, slant, weight)

Arguments

cr
family
[char] a font family name, encoded in UTF-8
slant
[CairoFontSlant] the slant for the font
weight
[CairoFontWeight] the weight for the font