Package: cairo

Function cairo:font-face-reference

Lambda List

cairo:font-face-reference (face)

Arguments

face -- a cairo:font-face-t instance, may be nil in which case this function does nothing

Return Value

The referenced cairo:font-face-t instance.

Details

Increases the reference count on face by one. This prevents the font face from being destroyed until a matching call to the cairo:font-face-destroy function is made.

The number of references to a cairo:font-face-t instance can be get using the cairo:font-face-reference-count function.
 

See also

2025-1-29