benilla-re systems structs docs

s_fontStringFitBuffer

global · ui

Address
0xcf0cc0 · 4096 bytes, up to 0xcf1cbf
Type
char[4096]
Meaning
Holds the text a FontString shortens with ... to fit its box
Confidence
verified, proof one
Finding
ui/fontstring#size-and-fitting

Finding: Size and fitting in ui: FontString and Font

A string draws at its font's pixel size one to one while bit 0x200 is set; SetTextHeight with a height that differs clears the bit and draws at that height. To fit its rectangle, a string with a width and either a line limit or a height measures how much text fits, with the height raised to one line, or set to the limit times a line. When the text does not fit, it backs off one character at a time from the end, appending ..., until the shortened text fits or nothing is left. The result is built once per change, in one 4,096-byte buffer.

The derivation is in the doc.