Text::addFont()
Add a font to the text.
Syntax
Java
Scratch
add font (name) (file path)
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