Sets the spacing between lines of text in units of pixels.
Sets the spacing between lines of text in units of pixels. This setting will be used in all subsequent calls to the Py5Graphics.text() function. Note, however, that the leading is reset by Py5Graphics.text_size(). For example, if the leading is set to 20 with
text_leading(20), then if
text_size(48) is run at a later point, the leading will be reset to the default for the text size of 48.
Underlying Processing method: PGraphics.textLeading
text_leading(leading: float, /) -> None
leading: float - the size in pixels for spacing between lines
Updated on November 12, 2021 11:30:58am UTC