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
loadFont()
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);
#### Descrição
Loads a font into a variable of type **PFont**. To load correctly, fonts must be located in the data directory of the current sketch.
#### Sintaxe
```pde
loadFont(fontname)
Parâmetros
fontname
string: name of the font to load