]> git.donarmstrong.com Git - lilypond.git/commitdiff
Pango: Change orientation of Y-axis for extra offsets.
authorPatrick McCarty <pnorcks@gmail.com>
Mon, 15 Nov 2010 21:13:57 +0000 (13:13 -0800)
committerPatrick McCarty <pnorcks@gmail.com>
Mon, 15 Nov 2010 23:32:49 +0000 (15:32 -0800)
This commit fixes issue #1407.

For extra offsets in glyph positioning, the backends expect to see a
Y-axis with positive values tending to the north, but Pango uses the
opposite orientation.  The problem is fixed by flipping the values of
`y_offset'.

lily/pango-font.cc

index e9fb2e8fda4b4d1f20426e4cda4a74ee5f3566da..21ab85ab667052697d8038e1aea8a59f5f792f14 100644 (file)
@@ -225,7 +225,7 @@ Pango_font::pango_item_string_stencil (PangoGlyphItem const *glyph_item) const
 
       *tail = scm_cons (scm_list_4 (scm_from_double (ggeo.width * scale_),
                                    scm_from_double (ggeo.x_offset * scale_),
-                                   scm_from_double (ggeo.y_offset * scale_),
+                                   scm_from_double (ggeo.y_offset * scale_),
                                    char_id),
                        SCM_EOL);
       tail = SCM_CDRLOC (*tail);