benilla-re systems structs docs

InternalGetMaxCharsWithinWidth

function · font · primitive

Address
0x5c6c50 · 725 bytes, up to 0x5c6f24
Signature
int __fastcall (void *arg1, const char *text, float size, float width, uint32_t flags, float extra, float *outWidth, int *outBytes, float *cumulative, uint32_t arg10, uint32_t arg11)
Meaning
Counts the characters that fit one line of a width
Confidence
verified, proof one
Name from
the community database (idb)
Finding
font/measure#fitting-characters-to-a-width
Test
font::wrap_max_chars_difftest

Finding: Fitting characters to a width in font: measuring and wrapping text

0x5c6c50 counts how many characters of a text fit one line of a given box width and can fill an array with the running width after each character. 0x5c2320 uses it with an effectively infinite box to find how many characters from the end fit a width.

The derivation is in the doc.

Callers 2

Callees 12

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