benilla-re systems structs docs

s_fontStringCount

global · ui

Address
0xcf1cc4 · 4 bytes, up to 0xcf1cc7
Type
uint32_t
Meaning
Holds the number of live font strings, counted up by their constructor and down by their destructor
Confidence
verified, proof one
Finding
ui/fonttext#creating-and-freeing-a-string

Finding: Creating and freeing a string in ui: font string internals

0x770e50 is the string's destructor body: it frees the text +0xf0, calls SetFont(0, 0, 0, 0), UnlockScriptObject(0), decrements the string count 0xcf1cc4, unlinks the font part from its font (0x770c60(0)) and ends in the region destructor 0x77f6f0. 0x770e20 is the deleting form: with bit 0 of its flag it returns the object to the block pool at 0xcf4d10 through CDataAllocator::PutData. 0x771680(n) sets the fixed text size +0xe8: a nonzero n different from the current one allocates an n + 1-byte text buffer from CSimpleRender.cpp line 863, writes a 0 first byte, frees the old buffer and stores n at +0xec. 0x770f10(node, region) reads the XML attribute name and sets it as the region's name when nonempty.

The derivation is in the doc.