CSimpleFontString::MeasureText
function · ui · primitive
- Address
0x772bc0· 101 bytes, up to0x772c24- Signature
float __thiscall (CSimpleFontString *this, const char *text, uint32_t length, float height)- Meaning
- Returns the font engine's width of a text at a height times the layout scale, 0 without a font
- Confidence
- verified, proof one
- Finding
- ui/fonttext#text-size-reads
- Test
ui::textglue_scale_mul
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 3
Callees 3
- 0x44d860 unassigned
- SStrLen storm
- CSimpleFontString::GetTextHeight ui
Calls and jumps by a bare address, from tables/calls.tsv.