CountGlyphsFromRight
function · ui · primitive
- Address
0x772c30· 101 bytes, up to0x772c94- Signature
int32_t __thiscall (void *this, float x, uint32_t arg3, uint32_t arg4)- Meaning
- Counts the glyphs that fit from the right edge of the line to a point
- Confidence
- verified, proof one
- Finding
- ui/editboxmarkup#faults
- Test
ui::textglue_scale_mul
Finding: Faults in ui: EditBox markup
Three client faults follow from the class array. A text whose last token is a colour escape (|cffffffff),
or, for a keyboard step, an unclosed link, hangs the step loop, which has no test for the end: SetText can set
such a text and one press of Right then freezes the client, though typing cannot, since | is typed as
||. A single-line box reads |n as a line break in its class array but draws and measures it as the two
characters | and n, which skews the caret by one glyph. The right-justified hit test counts glyphs from the
right edge and converts them from the line start, so markup or multibyte text gives a wrong byte index.
The derivation is in the doc.
Callers 2
Callees 3
- 0x44da50 unassigned
- SStrLen storm
- CSimpleFontString::GetTextHeight ui
Calls and jumps by a bare address, from tables/calls.tsv.