@c %start of fragment @deffn Function cairo-font-options-create @result{}@tie{} (@var{ret}@tie{}@code{}) Allocates a new font options object with all options initialized to default values. @table @var @item ret a newly allocated @code{}. Free with @code{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 @code{cairo-font-options-status}. @end table @end deffn @deffn Function cairo-font-options-copy (@var{original}@tie{}@code{}) @result{}@tie{} (@var{ret}@tie{}@code{}) Allocates a new font options object copying the option values from @var{original}. @table @var @item original a @code{} @item ret a newly allocated @code{}. Free with @code{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 @code{cairo-font-options-status}. @end table @end deffn @deffn Function cairo-font-options-merge (@var{options}@tie{}@code{}) (@var{other}@tie{}@code{}) Merges non-default options from @var{other} into @var{options}, replacing existing values. This operation can be thought of as somewhat similar to compositing @var{other} onto @var{options} with the operation of @samp{CAIRO_OPERATION_OVER}. @table @var @item options a @code{} @item other another @code{} @end table @end deffn @deffn Function cairo-font-options-hash (@var{options}@tie{}@code{}) @result{}@tie{} (@var{ret}@tie{}@code{}) Compute a hash for the font options object; this value will be useful when storing an object containing a @code{} in a hash table. @table @var @item options a @code{} @item ret the hash value for the font options object. The return value can be cast to a 32-bit type if a 32-bit hash value is needed. @end table @end deffn @deffn Function cairo-font-options-set-antialias (@var{options}@tie{}@code{}) (@var{antialias}@tie{}@code{}) Sets the antialiasing mode for the font options object. This specifies the type of antialiasing to do when rendering text. @table @var @item options a @code{} @item antialias the new antialiasing mode @end table @end deffn @deffn Function cairo-font-options-get-antialias (@var{options}@tie{}@code{}) @result{}@tie{} (@var{ret}@tie{}@code{}) Gets the antialiasing mode for the font options object. @table @var @item options a @code{} @item ret the antialiasing mode @end table @end deffn @deffn Function cairo-font-options-set-hint-style (@var{options}@tie{}@code{}) (@var{hint-style}@tie{}@code{}) Sets the hint style for font outlines for the font options object. This controls whether to fit font outlines to the pixel grid, and if so, whether to optimize for fidelity or contrast. See the documentation for @code{} for full details. @table @var @item options a @code{} @item hint-style the new hint style @end table @end deffn @deffn Function cairo-font-options-get-hint-style (@var{options}@tie{}@code{}) @result{}@tie{} (@var{ret}@tie{}@code{}) Gets the hint style for font outlines for the font options object. See the documentation for @code{} for full details. @table @var @item options a @code{} @item ret the hint style for the font options object @end table @end deffn @deffn Function cairo-font-options-set-hint-metrics (@var{options}@tie{}@code{}) (@var{hint-metrics}@tie{}@code{}) Sets the metrics hinting mode for the font options object. This controls whether metrics are quantized to integer values in device units. See the documentation for @code{} for full details. @table @var @item options a @code{} @item hint-metrics the new metrics hinting mode @end table @end deffn @c %end of fragment