From 0600234fc65d52e4830ad2cc6c1723fb33c9414f Mon Sep 17 00:00:00 2001 From: caryclark Date: Thu, 28 Jul 2016 11:35:27 -0700 Subject: fix text matrix again The text matrix for Skia is still wrong. The last fix allowed text to draw correctly when rotated, but did not draw correctly when skewed. With this edit, text draws correctly rotated, skewed horizontally, skewed vertically, and rotated and skewed. R=dsinclair@chromium.org Review-Url: https://codereview.chromium.org/2189093002 --- core/fxge/skia/fx_skia_device.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/fxge/skia/fx_skia_device.cpp b/core/fxge/skia/fx_skia_device.cpp index a5c509e61f..df20203820 100644 --- a/core/fxge/skia/fx_skia_device.cpp +++ b/core/fxge/skia/fx_skia_device.cpp @@ -137,7 +137,7 @@ SkMatrix ToSkMatrix(const CFX_Matrix& m) { // use when pdf's y-axis points up insead of down SkMatrix ToFlippedSkMatrix(const CFX_Matrix& m) { SkMatrix skMatrix; - skMatrix.setAll(m.a, -m.b, m.e, m.c, -m.d, m.f, 0, 0, 1); + skMatrix.setAll(m.a, -m.c, m.e, m.b, -m.d, m.f, 0, 0, 1); return skMatrix; } -- cgit v1.2.3