gfx/cairo/win32-vertically-offset-glyph.patch
author B2G Bumper Bot <release+b2gbumper@mozilla.com>
Mon, 22 Feb 2016 00:11:19 -0800
changeset 325566 8d12d859b204209efa947287597441641ea732b4
parent 24333 a6690fa2baba68d4accbbc3a36779c7dc145c398
permissions -rw-r--r--
Bumping manifests a=b2g-bump

diff --git a/gfx/cairo/cairo/src/cairo-win32-surface.c b/gfx/cairo/cairo/src/cairo-win32-surface.c
--- a/gfx/cairo/cairo/src/cairo-win32-surface.c
+++ b/gfx/cairo/cairo/src/cairo-win32-surface.c
@@ -1742,17 +1742,18 @@ _cairo_win32_surface_show_glyphs (void		
 
             cairo_matrix_transform_point(&device_to_logical,
                                          &next_user_x, &next_user_y);
 
             next_logical_x = _cairo_lround (next_user_x);
             next_logical_y = _cairo_lround (next_user_y);
 
             dxy_buf[j] = _cairo_lround (next_logical_x - logical_x);
-            dxy_buf[j+1] = _cairo_lround (next_logical_y - logical_y);
+            dxy_buf[j+1] = _cairo_lround (logical_y - next_logical_y);
+                /* note that GDI coordinate system is inverted */
 
             logical_x = next_logical_x;
             logical_y = next_logical_y;
         }
     }
 
     /* Using glyph indices for a Type 1 font does not work on a
      * printer DC. The win32 printing surface will convert the the