benilla-re systems structs docs

CSimpleFontString::RebuildString

function · ui · primitive

Address
0x7724a0 · 667 bytes, up to 0x77273a
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

Callees 10

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