Sets the current font size.


Sets the current font size. This size will be used in all subsequent calls to the Py5Graphics.text() function. Font size is measured in units of pixels.

This method is the same as text_size() but linked to a Py5Graphics object. To see example code for how it can be used, see text_size().

Underlying Processing method: PGraphics.textSize


text_size(size: float, /) -> None


  • size: float - the size of the letters in units of pixels

Updated on November 12, 2021 11:30:58am UTC