benilla-re systems structs docs

TTLoadGlyph

function · unassigned · primitive

Address
0x7d3c80 · 506 bytes, up to 0x7d3e79
Signature
int32_t __fastcall (void *size, void *slot, uint32_t glyph, int32_t flags)
Meaning
Loads a TrueType glyph, an embedded bitmap or an outline marked high precision under 24 ppem
Confidence
verified, proof one
Finding
font/freetype#loading-a-glyph

Finding: Loading a glyph in font: the FreeType calls

FT_Load_Glyph(face, glyph, flags) (0x7cdb40) returns 0x23 without a face, a size or a glyph slot, and 6 for an index at or past the glyph count. NO_RECURSE (0x400) clears RENDER (4) and sets NO_SCALE, NO_HINTING and IGNORE_TRANSFORM (0x803). Without NO_SCALE or NO_HINTING a scalable driver with no hinter of its own loads through the auto-hinter; otherwise the driver loads. The advance is the horizontal one unless VERTICAL_LAYOUT (0x10); the linear advances are scaled by the ppem over the units per em unless LINEAR_DESIGN (0x2000); the face's transform applies unless IGNORE_TRANSFORM; and RENDER renders an outline in mode 1 under MONOCHROME (0x1000), else 0. The TrueType loader marks the outline high precision (0x100) when the size's y ppem is under 24.

The derivation is in the doc.

Callers 1

Callees 5

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