SetFontFromArgs
function · ui · orchestration
- Address
0x79f210· 384 bytes, up to0x79f38f- 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
- Button::SetFont ui
- ScrollingMessageFrame::SetFont ui
- MessageFrame::SetFont ui
- SimpleHTML::SetFont ui
- EditBox::SetFont ui
- FontInstance::SetFont ui
Callees 15
- GetScaledScreenAspect screencoord
- MultiplyByScreenScaleX screencoord
- HandleClose base
- AssignSharedString base
- 0x41e4c0 base
- TextBlockGenerateFont unassigned
- SStrCmpI storm
- ParseFontFlags ui
- lua_isnumber lua
- lua_isstring lua
- lua_tonumber lua
- lua_tostring lua
- lua_pushnil lua
- lua_pushnumber lua
- luaL_error lua
Calls and jumps by a bare address, from tables/calls.tsv.