From a4420479a8f2d4d9b11039f5b7862f7f5f684db1 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Wed, 25 Jan 2023 14:37:10 -0700 Subject: [PATCH] Revert "[VarComposite] Fix skew" This reverts commit 8cf7076309da014e8e2af033b1c636785ae407cd. --- src/OT/glyf/VarCompositeGlyph.hh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/OT/glyf/VarCompositeGlyph.hh b/src/OT/glyf/VarCompositeGlyph.hh index dd34e3661..3685da791 100644 --- a/src/OT/glyf/VarCompositeGlyph.hh +++ b/src/OT/glyf/VarCompositeGlyph.hh @@ -156,10 +156,9 @@ struct VarCompositeGlyphRecord float skewX, float skewY) { // 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); 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); }