All examples · Text and UI

Font gallery

What this example shows

Two bitmap fonts, each with a fontSize that is a whole multiple of its own height (both are 8 px), which is what keeps every pixel square. Nacatamal Arcade is Press Start 2P drawn as a bitmap, so it has lowercase, accents and the Spanish ñ, ¿ and ¡; the other is the tutorial's own HUD font. Asking for the same font twice gives back the one already loaded.

The ticker at the bottom is a text whose transform.x moves every frame.

Starting