CSimpleFontString::SetFont
function · ui · orchestration
- Address
0x7714f0· 266 bytes, up to0x7715f9- Signature
uint32_t __thiscall (CSimpleFontString *this, const char *name, float height, uint32_t flags, uint8_t force)- Meaning
- Builds and installs the font of a name, height and flags unless unchanged, and relays the text out
- Confidence
- verified, proof one
- Finding
- ui/fonttext#font-string-members
- Test
ui::glue_7714f0_scale_mul,ui::glue_settled_eps
Finding: Font string members in ui: font string internals
A FontString's own state changes go through small members. SetFont(name, height, flags, force) (0x7714f0, ret 0x10)
returns 1 and skips the load when force is 0, the current path (0x772790) equals the name ignoring case, the height is
within 2^-22 and the flags (0x772810) are equal. Otherwise, for a height other than 0, it builds a font from the name,
flags and height times the layout scale +0x7c with TextBlockGenerateFont and returns 0 when none results. It then
stores the height at +0xe4, closes the built string +0xf8 and the old font, stores the new font at +0xe0 and, when
there is one, zeroes the measures +0xfc and +0x100, clears flag 1 at +0x60 and calls CLayoutFrame::Resize(0).
The derivation is in the doc.
Callers 7
- CGChatBubbleFrame::CGChatBubbleFrame ui
- CSimpleFontString::ApplyFontBlock ui
- CSimpleFontString::~CSimpleFontString ui
- CSimpleFontString::LoadXML ui
- CSimpleFontString::SetLayoutScale ui
- FontString::SetFont ui
- CGNamePlateFrame::CGNamePlateFrame ui
Callees 6
- HandleClose base
- TextBlockGenerateFont unassigned
- SStrCmpI storm
- CLayoutFrame::Resize ui
- CSimpleFontString::GetFontPath ui
- CSimpleFontString::GetFontFlags ui
Calls and jumps by a bare address, from tables/calls.tsv.