You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
villares edited this page May 24, 2020
·
4 revisions
Nome
textSize()
Exemplos
```pde
PFont font;
// The font must be located in the sketch's
// "data" directory to load successfully
font = loadFont("FFScala-32.vlw");
textFont(font, 32);
text("word", 15, 50);
textSize(14);
text("word", 15, 70);
#### Descrição
Sets the current font size. This size will be used in all subsequent calls to the **text()** function. Font size is measured in units of pixels.
#### Sintaxe
```pde
textSize(size)
Parâmetros
size
int or float: the size of the letters in units of pixels