[pango/harfbuzz-ng-external] Fix y_offset negation



commit e93eb62efa98f2db0c6183a526aa668e368b0f47
Author: Behdad Esfahbod <behdad behdad org>
Date:   Tue Oct 12 17:36:41 2010 -0400

    Fix y_offset negation

 modules/basic/basic-fc.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/modules/basic/basic-fc.c b/modules/basic/basic-fc.c
index cd5cebe..5ac7c77 100644
--- a/modules/basic/basic-fc.c
+++ b/modules/basic/basic-fc.c
@@ -167,8 +167,8 @@ pango_fc_hb_font_get_glyph_metrics (hb_font_t *font, hb_face_t *face, const void
 
   metrics->x_advance = logical.width;
   metrics->y_advance = 0;
-  metrics->x_offset  = ink.x;
-  metrics->y_offset  = ink.y;
+  metrics->x_offset  =  ink.x;
+  metrics->y_offset  = -ink.y;
   metrics->width     = ink.width;
   metrics->height    = ink.height;
 }
@@ -279,8 +279,8 @@ basic_engine_shape (PangoEngineShape *engine G_GNUC_UNUSED,
       last_cluster = glyphs->log_clusters[i];
 
       glyphs->glyphs[i].geometry.width = hb_position->x_advance;
-      glyphs->glyphs[i].geometry.x_offset = hb_position->x_offset;
-      glyphs->glyphs[i].geometry.y_offset = hb_position->y_offset;
+      glyphs->glyphs[i].geometry.x_offset =  hb_position->x_offset;
+      glyphs->glyphs[i].geometry.y_offset = -hb_position->y_offset;
 
       hb_glyph++;
       hb_position++;



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