benilla-re systems structs docs

TranslatePoints

function · unassigned · primitive

Address
0x7d4310 · 52 bytes, up to 0x7d4343
Signature
void __fastcall (uint32_t count, int32_t *points, int32_t dx, int32_t dy)
Meaning
Adds an offset to every point of an array, skipping an axis whose offset is 0
Confidence
verified, proof one
Finding
font/freetype#composite-glyphs

Finding: Composite glyphs in font: the FreeType calls

A TrueType composite loads each component, scaled, in order, then moves it. A component with a scale, an x and y scale or a 2×2 matrix transforms its new points by x' = x·m0 + y·m1, y' = x·m2 + y·m3, where m0 to m3 are the matrix's values in file order shifted left by 2, from 2.14 to 16.16. With ARGS_ARE_XY_VALUES (2) the offset is the two arguments, used as they are under NO_SCALE, else each scaled by its axis's scale and, under ROUND_XY_TO_GRID (4), rounded to (v + 32) & −64, hinted or not. Without it the offset is point k of the composite minus point l of the component. USE_MY_METRICS (0x200) keeps the component's phantom points.

The derivation is in the doc.

Callers 2

Callees 0

None by a direct call or jump.

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