DRAWING FUNCTIONS

PopFont

Restores the previous font.

Syntax

local popped = ONYX.PopFont()

Parameters

None

Return(s)

popped (boolean) — true when a font was popped, false when the stack was empty.

Behavior

  • Pops one entry from the per-coroutine font stack.
  • Has no effect when the stack is already empty.

Example(s)

ONYX.PushFont(fontId)
ONYX.DrawText(100, 100, "ONYXS", 0, 1, 1, 1, 1)
local ok = ONYX.PopFont()