Scratch for Java

Text::addFont()

Add a font to the text.

Syntax

Java

.addFont(name, filePath)

Scratch

Parameters

NameData TypeDescription
nameStringName of the font
filePathStringPath to a font file. The font file should use the ttf or otf format.

Return

void