benilla-re systems structs docs

GlyphClipOffsets

function · gx · primitive

Address
0x5d1360 · 111 bytes, up to 0x5d13ce
Signature
void __fastcall (void *face, int32_t *gap, int32_t *pad, uint32_t cellHeight, int32_t ascender, uint32_t rows)
Meaning
Seats a glyph bitmap in its cell: the gap and top pad from the bitmap top, the ascender, the cell height and the rows
Confidence
verified, proof one
Finding
font/glyphs#placing-the-bitmap
Test
font::glyph_vplace_difftest

Finding: Placing the bitmap in font: glyph cache and atlas

The rasterizer seats the bitmap vertically in its cell and converts the face's 26.6 values to pixels. Both functions are in the glyph file of gx. The cell height is the font's rendered pixel size, its em: a glyph's record keeps at most em rows of its bitmap, from the top, so a glyph taller than the em loses its bottom rows.

The derivation is in the doc.

Callers 1

Callees 0

None by a direct call or jump.

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