benilla-re systems structs docs

CreateStockFont

function · unassigned

Address
0x442b70 · 27 bytes, up to 0x442b8a
Signature
void __fastcall (uint32_t index, const char *file)
Meaning
Checks the index and file name of a stock font and makes it
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 2

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