benilla-re systems structs docs

CSimpleFont::SetFontObject

function · ui · orchestration

Address
0x7841d0 · 268 bytes, up to 0x7842db
Signature
CSimpleFont * __thiscall (CSimpleFont *this, CSimpleFont *source)
Meaning
Takes the source's mask and block and the font it follows, then runs slot 5
Confidence
verified, proof one
Finding
ui/fonttext#font-object-setfontobject

Finding: Font object SetFontObject in ui: font string internals

0x7841d0(source) is a Font's SetFontObject, the call under CopyFontObject. In order it copies the source's +0x6c into its own, merges the source's block into its own with FontBlockMerge, ANDs its block word with that +0x6c, copies the source's follow mask +0x2c, follows the font the source follows (+0x28), or none when that chain reaches itself, moving between the two fonts' follower lists, and runs slot 5, PushChanges. +0x6c is 0 in every font (Writers of Font +0x6c), so the copy keeps the merged values under a block word of 0: PushChanges sends nothing, and a follower that links to the copy later takes nothing either, until a setter or a push from its new font sets a group again.

The derivation is in the doc.

Callers 1

Callees 1

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