cairoSetFontSize {RGtk2} | R Documentation

## 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`` | [`Cairo`] a `Cairo`
``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.

### Author(s)

Derived by RGtkGen from GTK+ documentation

[Package RGtk2 version 2.20.36.3 Index]