mirror of
https://github.com/harfbuzz/harfbuzz.git
synced 2025-04-14 09:10:48 +00:00
Revert "[VarComposite] Optimize translate()"
This reverts commit 6a55e73d6a
.
This was wrong.
This commit is contained in:
parent
b79a49f1a0
commit
7cb95c8ab7
1 changed files with 3 additions and 2 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue