Py5Graphics.text_ascent()#

Returns ascent of the current font at its current size.

Description#

Returns ascent of the current font at its current size. This information is useful for determining the height of the font above the baseline.

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

Underlying Processing method: PGraphics.textAscent

Signatures#

text_ascent() -> float

Updated on March 06, 2023 02:49:26am UTC