benilla-re systems structs docs

GetStockFontHeight

function · unassigned

Address
0x442bd0 · 27 bytes, up to 0x442bea
Signature
float __fastcall (uint32_t index)
Meaning
Returns the height of stock text-block font 0 or 1, or 0.0 with error 0x57 for 2 or more
Confidence
verified, proof one
Finding
ui/fonttext#stock-text-block-fonts

Finding: Stock text block fonts in ui: font string internals

At start-up, after the font library starts, 0x442b00 makes the two stock text-block fonts, 0 and 1, both from Fonts\FRIZQT__.TTF at the height 0.01953125 (0x3ca00000), turned into the screen's device height and passed to TextBlockGenerateFont; each replaces and closes a font already in its slot. 0x442b50(i) returns stock font i and 0x442bd0(i) its height; both, and the maker 0x442b70, raise error 0x57 for an index of 2 or more, the height getter then answering 0.0. The maker also refuses a null or empty file name. The system message layer takes stock font 1.

The derivation is in the doc.

Callers 1

Callees 1

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