-
-
Notifications
You must be signed in to change notification settings - Fork 4
textFont_
villares edited this page May 24, 2020
·
4 revisions
```pde
PFont metaBold;
// The font "Meta-Bold.vlw.gz" must be located in the
// current sketch's "data" directory to load successfully
metaBold = loadFont("Meta-Bold.vlw.gz");
textFont(metaBold, 44);
text("word", 15, 50);
#### Descrição
Sets the current font. The font must be loaded with **loadFont()** before it can be used. This font will be used in all subsequent calls to the **text()** function. If no **size** parameter is input, the font will appear at its original size (the size it was created at with the "Create Font..." tool) until it is changed with **textSize()**.
#### Sintaxe
```pde
textFont(font)
textFont(font, size)
Parâmetros font PFont: any variable of the type PFont
size int or float: the size of the letters in units of pixels
Nenhum
Web & Applicações
A referência de Processing está sob a licença Creative Commons BY-NC conforme indicado aqui. Esta Wiki-tradução é baseada na tradução e adaptação para o Português do Brasil do professor Luiz Ernesto Merkle