From 27d3bac8ef77d56f91a7bd88bed02c3f1aceba0a Mon Sep 17 00:00:00 2001 From: Michiharu Ariza Date: Tue, 2 Apr 2019 17:02:11 -0700 Subject: [PATCH] fix 2x2 component transform --- src/hb-ot-var-gvar-table.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hb-ot-var-gvar-table.hh b/src/hb-ot-var-gvar-table.hh index 40c0fa128..46daf509a 100644 --- a/src/hb-ot-var-gvar-table.hh +++ b/src/hb-ot-var-gvar-table.hh @@ -64,8 +64,8 @@ struct contour_point_vector_t : hb_vector_t for (unsigned int i = 0; i < length; i++) { contour_point_t &p = (*this)[i]; - float x_ = p.x * matrix[0] + p.y * matrix[1]; - p.y = p.x * matrix[2] + p.y * matrix[3]; + float x_ = p.x * matrix[0] + p.y * matrix[2]; + p.y = p.x * matrix[1] + p.y * matrix[3]; p.x = x_; } }