Method Cairo.Context()->set_font_size()
- Method
set_font_size
void
set_font_size(float
|int
size
)- Description
Sets the current font matrix to a scale by a factor of size, replacing any font matrix previously set with set_font_size() or set_font_matrix(). 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.)
If text is drawn without a call to set_font_size(), (nor set_font_matrix() nor set_scaled_font()), the default font size is 10.0.
- Parameter
size
the new font size, in user space units