From 2accbdc0b6cbee4b6d9f581d8a890601881506fb Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Wed, 25 Jan 2023 14:40:04 -0700 Subject: [PATCH] [paint] Minor skew --- src/hb-paint.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hb-paint.hh b/src/hb-paint.hh index 007e899cc..f7b71aa19 100644 --- a/src/hb-paint.hh +++ b/src/hb-paint.hh @@ -216,8 +216,8 @@ struct hb_paint_funcs_t if (!sx && !sy) return false; - float x = -tanf (sx * (float) M_PI); - float y = +tanf (sy * (float) M_PI); + float x = tanf (-sx * (float) M_PI); + float y = tanf (+sy * (float) M_PI); push_transform (paint_data, 1.f, y, x, 1.f, 0.f, 0.f); return true; }