benilla-re systems structs docs

CSimpleFontString::SetSpacing

function · ui · primitive

Address
0x772240 · 88 bytes, up to 0x772297
Signature
void __thiscall (CSimpleFontString *this, float spacing)
Meaning
Clamps a negative spacing to 0, stores a changed one and rebuilds the string
Confidence
verified, proof one
Finding
ui/fonttext#text-offset-and-spacing
Test
ui::textglue_settled_eps

Finding: Text offset and spacing in ui: font string internals

0x772100(x, y) sets the text offset at +0x110, +0x114 when either differs, and with a built string moves it to (x · scale + left, y · scale + bottom) of the stored rectangle (+0x68, +0x64) through 0x44d600; a button's label uses it for its pressed offset. 0x772240(v) clamps a negative spacing to 0, and when it differs from +0xf4 by 2^-22 or more stores it, zeroes the height measure +0x100 and rebuilds the built string with 0x7724a0. 0x773500(word) stores the justify word +0x120 when changed and rebuilds. 0x772460(start, length) stores the alpha gradient pair at +0x118, +0x11c and answers 1, or with a built string whether 0x44dc40 answers less than 2.

The derivation is in the doc.

Callers 3

Callees 1

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