Package: cairo

Function cairo:scaled-font-create

Lambda List

cairo:scaled-font-create (face matrix ctm options)

Arguments

face -- a cairo:font-face-t instance
matrix -- a cairo:matrix-t matrix for the font space to user space transformation for the font, in the simplest case of a N point font, this matrix is just a scale by N, but it can also be used to shear the font or stretch it unequally along the two axes, see the cairo:font-matrix function
ctm -- a cairo:matrix-t matrix for the user to device transformation with which the font will be used
options -- a cairo:font-options-t value for the options to use when getting metrics for the font and rendering with it

Return Value

The newly created cairo:scaled-font-t instance. Destroy with the cairo:scaled-font-destroy function.

Details

Creates a cairo:scaled-font-t instance from a font face and matrices that describe the size of the font and the environment in which it will be used.
 

See also

2025-1-29