loadFont()
Typography / Loading & DisplayingDescription
Loads a font from the sketch's data folder. Supports .ttf and .otf files.
Syntax
PFont loadFont(std::string filename)
Parameters
| Name | Type | Description |
|---|---|---|
| filename | std::string | name of the font file |
Returns
PFontRelated
Under the Hood
Implementation in Processing.h / Processing.cpp:
Loading...