Revert "[VarComposite] Optimize translate()"

This reverts commit 6a55e73d6a.

This was wrong.
This commit is contained in:
Behdad Esfahbod 2023-04-27 12:28:00 -06:00
parent b79a49f1a0
commit 7cb95c8ab7

View file

@ -140,8 +140,9 @@ struct VarCompositeGlyphRecord
if (!translateX && !translateY)
return;
trans.x += translateX;
trans.y += translateY;
// https://github.com/fonttools/fonttools/blob/f66ee05f71c8b57b5f519ee975e95edcd1466e14/Lib/fontTools/misc/transform.py#L213
float other[6] = {1.f, 0.f, 0.f, 1.f, translateX, translateY};
transform (matrix, trans, other);
}
static void scale (float (&matrix)[4], contour_point_t &trans,