benilla-re systems structs docs

GxuFontGetCharsFittingWidth

function · unassigned · primitive

Address
0x5c2320 · 259 bytes, up to 0x5c2422
Signature
int __fastcall (void *arg1, const char *text, float size, float width, int count, float *out, uint32_t flags, uint32_t arg8, uint32_t arg9)
Meaning
Counts the characters from the end that fit a width
Confidence
verified, proof one
Finding
font/measure#fitting-characters-to-a-width
Test
font::font_width_fit_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 1

Callees 2

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