benilla-re systems structs docs

GxuFontGetTextBlockHeight

function · unassigned · primitive

Address
0x5c2070 · 273 bytes, up to 0x5c2180
Signature
float __fastcall (void *arg1, const char *text, float size, float width, void *state, uint32_t flags, uint32_t arg7)
Meaning
Returns the height of a wrapped text
Confidence
verified, proof one
Finding
font/measure#block-height-and-fit
Test
font::font_textblock_height_difftest

Finding: Block height and fit in font: measuring and wrapping text

0x5c2070 returns the height of a wrapped text: the number of lines N times the size plus the line gap between them. 0x5c21c0 counts how many characters fit a given height.

The derivation is in the doc.

Callers 2

Callees 5

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