mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-20 22:41:10 +01:00
Revert "[VarComposite] Optimize translate()"
This reverts commit 6a55e73d6a.
This was wrong.
This commit is contained in:
1 parent
b79a49f1a0
commit
7cb95c8ab7
1 file changed
+3
-2
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user