RGtk2 (version 2.20.31)

cairoSetFontSize: cairoSetFontSize

Description

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

Usage

cairoSetFontSize(cr, size)

Arguments

cr
size
[numeric] the new font size, in user space units

Details

If text is drawn without a call to cairoSetFontSize, (nor cairoSetFontMatrix nor cairoSetScaledFont), the default font size is 10.0.