PushFont

Make a previously loaded font the current font for this coroutine.

Syntax

Susano.PushFont(fontId) -> void

Parameters

circle-info

fontId (number): Result of Susano.LoadFont.

Return(s)

circle-info

None

Behavior

circle-info

Pushes fontId on a per-coroutine font stack.

Affects subsequent Susano.DrawText and Susano.GetTextWidth.

Use size_px = 0 in DrawText to render at this font’s native size.

Example(s)

Last updated