Package: cairo

Function cairo:font-options

Lambda List

cairo:font-options (cr options)

Syntax

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

Arguments

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

Details

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

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:font-options) function.

Rendering font options are derived by merging 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

2025-1-29