Revert "[VarComposite] Fix skew"

This reverts commit 8cf7076309.
This commit is contained in:
Behdad Esfahbod 2023-01-25 14:37:10 -07:00
parent 8cf7076309
commit a4420479a8
1 changed files with 1 additions and 2 deletions

View File

@ -156,10 +156,9 @@ struct VarCompositeGlyphRecord
float skewX, float skewY) float skewX, float skewY)
{ {
// https://github.com/fonttools/fonttools/blob/f66ee05f71c8b57b5f519ee975e95edcd1466e14/Lib/fontTools/misc/transform.py#L255 // https://github.com/fonttools/fonttools/blob/f66ee05f71c8b57b5f519ee975e95edcd1466e14/Lib/fontTools/misc/transform.py#L255
// We need a sign difference compared to fonttools
skewX = skewX * float (M_PI); skewX = skewX * float (M_PI);
skewY = skewY * float (M_PI); skewY = skewY * float (M_PI);
float other[6] = {1.f, tanf (skewY), -tanf (skewX), 1.f, 0.f, 0.f}; float other[6] = {1.f, tanf (skewY), tanf (skewX), 1.f, 0.f, 0.f};
transform (matrix, trans, other); transform (matrix, trans, other);
} }