textSize()

Typography / Attributes

Description

Sets the current font size. This size will be used in all subsequent calls to text().

Syntax

void textSize(float size)

Parameters

NameTypeDescription
sizefloatthe size of the letters in pixels

Returns

void

Related

Under the Hood

Implementation in Processing.h / Processing.cpp:

Loading...