benilla-re systems structs docs

CSimpleFontString::GetTextHeight

function · ui · primitive

Address
0x7727b0 · 90 bytes, up to 0x772809
Signature
float __thiscall (CSimpleFontString *this, uint8_t scaled)
Meaning
Returns the text height, or for the one-to-one size with scaled set the font's height over the layout scale
Confidence
verified, proof one
Finding
ui/fonttext#text-size-reads
Test
ui::textglue_div_scale

Finding: Text size reads in ui: font string internals

0x7727b0(scaled) returns the text height +0xe4; with scaled set and a font and bit 0x200 of +0x120 it returns the font's one-to-one height divided by the layout scale, times the vertical screen scale. 0x772bc0(text, length, height) measures the width of a text as the font engine gives it: with no font 0, otherwise 0x44d860 on the font with the text, the height times the layout scale and the justify word, the result times the layout scale.

The derivation is in the doc.

Callers 19

Callees 3

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