GSDP:GAM100/CProcessing/textFont()
From Inside
< GSDP:GAM100 | CProcessing
textFont()
Description
Lets you set the font with a PFont object for the next text draw call.
Parameters
textFont( PFont font, float size )
- font - (PFont) The loaded font file you wish to set as the next font.
- size - (float) Sets the size of the font drawn by calling
Example
{
//Set the font to default and set size to 30
textFont(defaultFont, 30.0f);
// Set it to be red text
fill(color(255, 0, 0, 255));
// Draw the word TESTING in the upper left corner
text("TESTING", 0.0f, 30.0f);
}