CSimpleFontString::GetTextHeight
function · ui · primitive
- Address
0x7727b0· 90 bytes, up to0x772809- 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
- CSimpleFontString::FitText ui
- CSimpleFontString::RebuildString ui
- CSimpleFontString::GetCachedWidth ui
- CSimpleFontString::GetCachedHeight ui
- MeasureRunWidth ui
- CSimpleFontString::WrapText ui
- CSimpleFontString::MeasureText ui
- CountGlyphsFromRight ui
- CSimpleFontString::SetLayoutScale ui
- CSimpleEditBox::CreateCompositionTexture ui
- CSimpleEditBox::CreateCandidateFrame ui
- CSimpleEditBox::ShowCandidates ui
- CSimpleEditBox::LayoutLabel ui
- CSimpleEditBox::GetIndexAtPoint ui
- CSimpleEditBox::RebuildLabel ui
- CSimpleEditBox::PlaceCaret ui
- CSimpleEditBox::PlaceSelectionPiece ui
- CSimpleMessageFrame::AddLine ui
- FontString::GetFont ui
Callees 3
- ScaleScreenDelta screencoord
- TextBlockGetFontPtr unassigned
- GxuFontGetOneToOneHeight unassigned
Calls and jumps by a bare address, from tables/calls.tsv.