Sign convention for y offsets is opposite between PangoGlyphString and FT
authorOwen Taylor <otaylor@redhat.com>
Sat, 21 Feb 2004 14:53:12 +0000 (14:53 +0000)
committerOwen Taylor <otaylor@src.gnome.org>
Sat, 21 Feb 2004 14:53:12 +0000 (14:53 +0000)
Sat Feb 21 09:49:23 2004  Owen Taylor  <otaylor@redhat.com>

        * pango/opentype/pango-ot-ruleset.c (pango_ot_ruleset_shape):
        Sign convention for y offsets is opposite between
        PangoGlyphString and FT code. (#132591)

src/pango-ot-ruleset.c

index 996bd04..bf297f1 100644 (file)
@@ -267,7 +267,7 @@ pango_ot_ruleset_shape (PangoOTRuleset   *ruleset,
                glyphs->glyphs[i].geometry.x_offset -= glyphs->glyphs[j].geometry.width;
 
              glyphs->glyphs[i].geometry.x_offset += PANGO_UNITS_26_6(x_pos);
-             glyphs->glyphs[i].geometry.y_offset += PANGO_UNITS_26_6(y_pos);
+             glyphs->glyphs[i].geometry.y_offset -= PANGO_UNITS_26_6(y_pos);
 
              if (outgpos[i].new_advance)
                glyphs->glyphs[i].geometry.width  = PANGO_UNITS_26_6(outgpos[i].x_advance);