[pango] [win32] Invert y_offset



commit 4866be2c7b252182ec81ba2880fd2740afa20633
Author: Behdad Esfahbod <behdad behdad org>
Date:   Tue Jul 29 10:58:56 2014 -0400

    [win32] Invert y_offset
    
    All these years, in the win32 backend, the y_offset was inverted.
    Ie. no vertical glyph positioning worked, ever...  Sigh.

 modules/basic/basic-win32.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/modules/basic/basic-win32.c b/modules/basic/basic-win32.c
index db92a38..e9d020d 100644
--- a/modules/basic/basic-win32.c
+++ b/modules/basic/basic-win32.c
@@ -605,8 +605,8 @@ itemize_shape_and_place (PangoFont           *font,
            {
              glyphs->glyphs[ng+glyphix].glyph = iglyphs[glyphix];
              glyphs->glyphs[ng+glyphix].geometry.width = floor (0.5 + scale * advances[glyphix]);
-             glyphs->glyphs[ng+glyphix].geometry.x_offset = floor (0.5 + scale * offsets[glyphix].du);
-             glyphs->glyphs[ng+glyphix].geometry.y_offset = floor (0.5 + scale * offsets[glyphix].dv);
+             glyphs->glyphs[ng+glyphix].geometry.x_offset =  floor (0.5 + scale * offsets[glyphix].du);
+             glyphs->glyphs[ng+glyphix].geometry.y_offset = -floor (0.5 + scale * offsets[glyphix].dv);
            }
          else
            {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]