Allocates a new font options object copying the option values from original.

cairo_font_options_copy(original)

Arguments

original

[cairo_font_options_t *] a #cairo_font_options_t

Value

[cairo_font_options_t *]

Details

Return value: a newly allocated #cairo_font_options_t. Free with cairo_font_options_destroy(). This function always returns a valid pointer; if memory cannot be allocated, then a special error object is returned where all operations on the object do nothing. You can check for this with cairo_font_options_status().

Since: 1.0

C function prototype: cairo_font_options_t * cairo_font_options_copy (const cairo_font_options_t *original)

See also