From 4ea4281ad5775686317ef53f48eab39898d13d23 Mon Sep 17 00:00:00 2001 From: npm Date: Tue, 11 Oct 2016 11:51:21 -0700 Subject: 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 --- core/fxge/apple/fx_apple_platform.cpp | 1 + 1 file changed, 1 insertion(+) 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; -- cgit v1.2.3