s_fontObjectCount
global · ui
- Address
0xcf4e78· 4 bytes, up to0xcf4e7b- Type
uint32_t- Meaning
- Holds the number of live Font objects, counted up by their constructor and down by their destructor
- Confidence
- verified, proof one
- Finding
- ui/fonttext#the-font-object
Finding: The Font object in ui: font string internals
A Font object (CSimpleFont, vtable 0x81cb28, layout part 0x81cb20) holds a font block at +0x38, a justify word +0x54 (0x212 when built), a colour word
+0x58 (−1), its inherit mask +0x2c (0x1f), the word +0x6c (0) that SetFontObject copies, the font it follows +0x28 and the list of its own followers +0x74 with their link offset +0x70 (0xc). 0x783a40 builds one:
it constructs the script object part (0x701ae0), clears the block and the follow fields, makes +0x74 an empty list and counts the object in 0xcf4e78. 0x783b20 destroys one: it clears its
name, detaches every follower (0x770c60(0) until the list is empty), decrements the count, unlinks itself from its own font and ends in the script object destructor (0x701b40).
The derivation is in the doc.