Scratch for Java

Text::addFont()

Add a font to the text.

Syntax

Java

.addFont(name, filePath)

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

addFont()