CSimpleFontString::RebuildString
function · ui · primitive
- Address
0x7724a0· 667 bytes, up to0x77273a- Signature
void __thiscall (CSimpleFontString *this)- Meaning
- Closes and rebuilds the engine string from the fitted text, offset, size, spacing, shadow and gradient
- Confidence
- verified, proof one
- Finding
- ui/fonttext#building-the-string
- Test
ui::textglue_recip_span_pair,ui::textglue_scale_offset_7724a0,ui::textglue_settled_poseps
Finding: Building the string in ui: font string internals
0x7724a0 rebuilds a string's built object +0xf8. It does nothing while flag 1 of +0x60 is clear. Otherwise it closes the
old object and, for a rectangle with bottom < top and left < right, a font and a nonempty text, builds a new one: the text fitted to
the rectangle over the scale (0x771ec0), the size snapped to the authored or measured one within 1e-5, and 0x44d420 given the text, the
origin (+0x110 · scale + left, +0x114 · scale + bottom), the size, spacing and justify word. Text with no |c escape gets 0x400
added to the word. A shadow and a gradient follow. Every path past the area test ends in the layer notification 0x77fdf0.
The derivation is in the doc.
Callers 14
- StartChatBubble ui
- CSimpleFontString::ApplyFontBlock ui
- CSimpleFontString::LoadXML ui
- CSimpleFontString::SetSpacing ui
- CSimpleFontString::SetShadowColor ui
- CSimpleFontString::OnFrameSizeChanged ui
- CSimpleFontString::SetJustifyWord ui
- CSimpleEditBox::SetMultiLine ui
- MessageLineConstruct ui
- 0x788d90 ui
- CSimpleHTML::AddTextBlock ui
- FontString::SetJustifyH ui
- FontString::SetJustifyV ui
- FontString::SetNonSpaceWrap ui
Callees 10
- HandleClose base
- TextBlockSetShadow unassigned
- TextBlockCreate unassigned
- 0x44dc40 unassigned
- CopyColor gx
- CLayoutFrame::GetHeight ui
- CLayoutFrame::GetWidth ui
- CSimpleFontString::FitText ui
- CSimpleFontString::GetTextHeight ui
- CScriptRegion::NotifyLayerChanged ui
Calls and jumps by a bare address, from tables/calls.tsv.