Constructor
new FontUnit(p, name, filePathopt)
- Source:
Parameters:
Name |
Type |
Attributes |
Description |
p |
|
|
p5ex instance.
|
name |
string
|
|
The font name.
|
filePath |
string
|
<optional>
|
The file path of the font.
Not required if the font is already loaded (e.g. as a web font).
|
Methods
applyFont()
Applies the font to the current renderer.
- Source:
loadFile()
Loads the font file if the file path has been specified.
- Source: