Scratch for Java

BitmapText::addGlyph()

Assigns an image to a special character, such as a controller button. Overrides remain in effect when setFont() changes the ordinary glyphs.

Examples

File /src/examples/java/reference//BitmapTextExample.java is missing.

View on GitHub

Syntax

Java

.addGlyph(character, path)

Parameters

Name Data Type Description
character char the character to replace
path String its image or built-in costume name

Return

void

addGlyph()

Create Shareable URL

Select Sections