benilla-re systems structs docs

FTGetKerning

function · unassigned · primitive

Address
0x7ce830 · 153 bytes, up to 0x7ce8c8
Signature
int32_t __fastcall (void *face, uint32_t left, uint32_t right, uint32_t mode, int32_t *kerning)
Meaning
Returns the kerning of a glyph pair, unscaled in mode 2, scaled in mode 1, scaled and rounded otherwise
Confidence
verified, proof one
Finding
font/freetype#kerning
Test
font::get_kerning_difftest

Finding: Kerning in font: the FreeType calls

The TrueType kerning is the first kern subtable whose coverage is exactly 0x0001: format 0, horizontal. FT_Get_Kerning(face, left, right, mode, out) sets the vector to 0, asks the driver, and for mode 2 returns the value in font units. Any other mode scales x by the size's x scale and y by its y scale; mode 1 stops there, and every other mode rounds each to (v + 32) & −64. It returns 0x23 for a null face and 6 for a null output.

The derivation is in the doc.

Callers 1

Callees 1

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