FontBlockMergeMasked
function · ui · primitive
- Address
0x770910· 434 bytes, up to0x770ac1- Signature
void __thiscall (void *this, FontBlock *dest, uint32_t mask)- Meaning
- Copies the set, changed and masked groups of a font block into another where they differ or are unset
- Confidence
- verified, proof one
- Finding
- ui/fonttext#merging-font-blocks
- Test
ui::glue_settled_eps
Finding: Merging font blocks in ui: font string internals
A font block, the record a Font keeps and a follower reads, holds a validity word at +0x0, the font name +0x4,
height +0x10, flags +0x14, spacing +0x18, the justify word +0x1c, the text colour +0x20, the shadow colour
+0x24 and the shadow offsets +0x28, +0x2c. Bits 0x100 to 0x1000 say a group is set (font, justify, colour,
shadow, spacing) and bits 0x1 to 0x10 that it changed. 0x770ad0(source) and 0x770910(destination, mask) copy a set
group into the receiving block only when it differs (a font by name ignoring case, a height or spacing by 2^-22) or,
except for the font, the receiving block's set bit is still clear, and then set both bits of the group.
The derivation is in the doc.
Callers 1
Callees 5
- HandleClose base
- AssignSharedString base
- 0x41e4c0 base
- TextBlockGenerateFont unassigned
- SStrCmpI storm
Calls and jumps by a bare address, from tables/calls.tsv.