Package: cairo

Function cairo-font-options

Lambda List

cairo-font-options (cr)

Syntax

(cairo-font-options cr) => options
(setf (cairo-font-options cr) options)

Arguments

cr -- a cairo-t context
options -- a cairo-font-options-t instance

Details

The cairo-font-options function retrieves font rendering options. The (setf cairo-font-options) function sets a set of custom font rendering options for the Cairo context.

Note that the returned font options do not include any font options derived from the underlying surface. They are literally the font options passed to the (setf cairo-set-font-options) function.

Rendering font options are derived by merging these options with the options derived from underlying surface. If the value in options has a default value, like :default, then the value from the surface is used.
 

See also

2021-12-12