benilla-re systems structs docs

OpenFontFace

function · unassigned · orchestration

Address
0x5d0060 · 552 bytes, up to 0x5d0287
Signature
void * __fastcall (const char *path, void *library)
Meaning
Opens a font face from a path as a referenced handle, or returns the open one with a reference added
Confidence
verified, proof one
Finding
font/freetype#opening-a-face

Finding: Opening a face in font: the FreeType calls

0x5d0060(path, library) returns a handle to the face of a font path, or 0. A null library or a null or empty path returns 0. A path already open, matched by its SStrHashHT hash and then SStrCmpI without a length limit, returns its handle with a reference added. Otherwise the whole file is read with SFile::Load flags 3, a face is made from that memory with face index 0, and the unic charmap is selected; a failure unloads the file and returns 0, and a face made before a failed selection is not released. A new record keeps the file, the face and the path in the table 0xc4ba7c, and its handle is returned with a reference added.

The derivation is in the doc.

Callers 1

Callees 14

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