Scratch for Java

Text::addFont()

Adds a font this text can switch to; the first one added is used.

Examples

View on GitHub

Syntax

Java

.addFont(name, path)

Parameters

Name Data Type Description
name String the font's name
path String the TTF or OTF file

Return

void

addFont()

Create Shareable URL

Select Sections