Package: cairo

Function cairo-get-scaled-font

Lambda List

cairo-get-scaled-font (cr)

Arguments

cr -- a cairo-t context

Return Value

The current scaled font. This object is owned by Cairo. To keep a reference to it, you must call the cairo-scaled-font-reference function. This function never returns NULL. If memory cannot be allocated, a special "nil" cairo-scaled-font-t instance will be returned on which the cairo-scaled-font-status function returns :no-memory. Using this nil instance will cause its error state to propagate to other objects it is passed to, for example, calling the cairo-set-scaled-font function with a nil font will trigger an error that will shutdown the Cairo context.

Details

Gets the current scaled font for the Cairo context.
 

See also

2021-12-12