MeasureRunProportional
function · font · primitive
- Address
0x5c7470· 753 bytes, up to0x5c7760- Signature
void __fastcall (void *arg1, const char *text, float size, float box, int *bytes, float *width, const char **next, float extra, uint32_t flags, uint8_t *broke)- Meaning
- Measures how much of a text fits one line with break opportunities
- Confidence
- verified, proof one
- Finding
- font/measure#steps-along-a-line
- Test
font::measure_run_proportional_difftest
Finding: Steps along a line in font: measuring and wrapping text
0x5c7260 measures one line step for a text. It chooses the fixed-width run 0x5c7300 for flag
0x80 and the proportional run 0x5c7470 otherwise, and zeroes its outputs when a gate fails
(Line step gates). Each returns the bytes consumed, the width and the start of the next line.
The derivation is in the doc.
Callers 1
- MeasureLineStep font
Callees 13
- sgetu8 unassigned
- GxuFontGetOneToOneHeight unassigned
- GxuDetermineQuotedCode unassigned
- CGxFont::GetCharAdvance font
- ScreenToPixelHeight font
- ScreenToPixelWidth font
- LineBreakClass font
- CGxFont::ComputeStep font
- CGxFont::ComputeStepFixedWidth font
- CGxFont::NewCodeDesc font
- GxuFontGetPixelSize font
- ceil crt
- _iswspace crt
Calls and jumps by a bare address, from tables/calls.tsv.