benilla-re systems structs docs

SetFontFromArgs

function · ui · orchestration

Address
0x79f210 · 384 bytes, up to 0x79f38f
Meaning
Sets a font's file, height and flags, returning 1, or nil for a bad height or file
Confidence
verified, proof one
Finding
ui/fontstring#setfont
Test
ui::set_scaled_changed_spilled_79f210

Finding: SetFont in ui: FontString and Font

SetFont(file, height, flags) takes a string and a number and raises a usage error otherwise. The flags are found as substrings, ignoring case: OUTLINE 1, THICKOUTLINE 4, MONOCHROME 2, so THICKOUTLINE sets 5. The same file, height and flags skip the load. A height of 0 or less, or a file the engine cannot load, returns nil; otherwise the font is replaced, its followers updated, and it returns the number 1.

The derivation is in the doc.

Callers 6

Callees 15

Calls and jumps by a bare address, from tables/calls.tsv.