From 25233e40ae1a31b50f949a1d6b4146d01ac9350a Mon Sep 17 00:00:00 2001 From: Patrick McCarty Date: Mon, 15 Nov 2010 13:13:57 -0800 Subject: [PATCH] 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'. --- lily/pango-font.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.2