Package: cairo

Function cairo-set-font-size

Lambda List

cairo-set-font-size (cr size)

Arguments

cr -- a cairo-t context
size -- a number coerced to a double float with the new font size, in user space units

Details

Sets the current font matrix to a scale by a factor of size, replacing any font matrix previously set with the cairo-set-font-size or cairo-set-font-matrix functions. This results in a font size of size user space units. More precisely, this matrix will result in the em-square of the font being a size by size square in user space.

If text is drawn without a call to the cairo-set-font-size function, nor the cairo-set-font-matrix or cairo-set-scaled-font functions, the default font size is 10.0.
 

See also

*2021-12-12