benilla-re systems structs docs

GxuFontEnumerateLines

function · unassigned · primitive

Address
0x5c2430 · 263 bytes, up to 0x5c2536
Signature
int __fastcall (void *font, const char *text, uint32_t length, float size, float width, uint32_t *offsets, uint32_t count, uint32_t arg8, uint32_t arg9, uint32_t flags)
Meaning
Writes the byte offset each line starts at, up to a count, and returns the number of lines
Confidence
verified, proof one
Finding
font/markup#line-starts
Test
font::line_break_enumerate_difftest

Finding: Line starts in font: markup and line breaks

0x5c2430(font, text, length, size, width, offsets, count, …, flags) writes the byte offset at which each line of the first length bytes of a text starts into offsets, at most count of them, and returns the number of lines, which can exceed count: a caller with a short array gets the whole count back, and a count of 0 only counts.

The derivation is in the doc.

Callers 1

Callees 3

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