cairo_set_font3cairo_set_fontreplace the font in the current state
void cairo_set_font (cairo_t *cr, cairo_font_t *font)cr :a cairo_tfont :a cairo_font_tDescriptionfunctionscairo_set_font
Replaces the current cairo_font_t object in the cairo_t with font. The replaced font in
the cairo_t will be destroyed if
there are no other references to it. Since a cairo_font_t is
specific to a particular output device and size, changing the
transformation, font transformation, or target surfaces of a
cairo_t
will clear any previously set font. Setting the font using
cairo_set_font is exclusive with the
simple font selection API provided by cairo_select_font. The
size and transformation set by cairo_scale_font() and
cairo_transform_font() are ignored unless they were taken into
account when creating font.