From: Patrick McCarty Date: Mon, 15 Nov 2010 21:13:57 +0000 (-0800) Subject: Pango: Change orientation of Y-axis for extra offsets. X-Git-Tag: release/2.13.40-1~16^2~5 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=25233e40ae1a31b50f949a1d6b4146d01ac9350a;p=lilypond.git Pango: Change orientation of Y-axis for extra offsets. 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'. --- diff --git a/lily/pango-font.cc b/lily/pango-font.cc index e9fb2e8fda..21ab85ab66 100644 --- a/lily/pango-font.cc +++ b/lily/pango-font.cc @@ -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);