ReplaceStockFont
function · unassigned
- Address
0x442b90· 62 bytes, up to0x442bcd- Signature
void __fastcall (uint32_t index, const char *file)- Meaning
- Closes a stock font and makes it again from a file at its table height
- 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
- CreateStockFont unassigned
Callees 3
- MultiplyByScreenScaleY screencoord
- HandleClose base
- TextBlockGenerateFont unassigned
Calls and jumps by a bare address, from tables/calls.tsv.