Logo Search packages:      
Sourcecode: aisleriot version File versions  Download package

void ar_svg_set_font_options ( ArSvg svg,
const cairo_font_options_t *  font_options 
)

ar_svg_set_font_options: : a ArSvg : (allow-none): a cairo_font_options_t, or NULL

Sets font options to use when painting to cairo using ar_svg_render_cairo_sub(). Use NULL to unset previously set font options.

Definition at line 359 of file ar-svg.c.

{
  g_return_if_fail (AR_IS_SVG (svg));

  if (svg->font_options) {
    cairo_font_options_destroy (svg->font_options);
  }

  if (font_options) {
    svg->font_options = cairo_font_options_copy (font_options);
  } else {
    svg->font_options = NULL;
  }
}

Generated by  Doxygen 1.6.0   Back to index