summaryrefslogtreecommitdiff
path: root/core/fxge/apple
diff options
context:
space:
mode:
authornpm <npm@chromium.org>2016-10-11 11:51:21 -0700
committerCommit bot <commit-bot@chromium.org>2016-10-11 11:51:21 -0700
commit4ea4281ad5775686317ef53f48eab39898d13d23 (patch)
treeeb79d7d1a40c5d58b50c86d4ebf0b35919b41b53 /core/fxge/apple
parent4526faf9d62b64729a232c20ada67690f590abd2 (diff)
downloadpdfium-4ea4281ad5775686317ef53f48eab39898d13d23.tar.xz
Fix negative font rendering on Mac by reversing matrix c component.
Notice that this is just making it analoguous to how it works when the font is positive: the b and d components are reversed. Currently, when the font is negative, only the a component is reversed. The c one needs to be reversed as well. BUG=chromium:653941 Review-Url: https://codereview.chromium.org/2411833002
Diffstat (limited to 'core/fxge/apple')
-rw-r--r--core/fxge/apple/fx_apple_platform.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/fxge/apple/fx_apple_platform.cpp b/core/fxge/apple/fx_apple_platform.cpp
index 2108d4d2e4..211e5745e2 100644
--- a/core/fxge/apple/fx_apple_platform.cpp
+++ b/core/fxge/apple/fx_apple_platform.cpp
@@ -72,6 +72,7 @@ FX_BOOL CGDrawGlyphRun(CGContextRef pContext,
}
if (bNegSize) {
new_matrix.a = -new_matrix.a;
+ new_matrix.c = -new_matrix.c;
} else {
new_matrix.b = -new_matrix.b;
new_matrix.d = -new_matrix.d;