Text::addFont()
Add a font to the text.
Syntax
Java
.addFont(name, filePath)
Scratch
Parameters
Name | Data Type | Description |
---|---|---|
name | String | Name of the font |
filePath | String | Path to a font file. The font file should use the ttf or otf format. |
Return
void