From c592e19bb9235b6bd51293bfd25b8d40d1ae3aa7 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Thu, 21 Apr 2011 15:17:03 -0400 Subject: [HB] Make y grow down More intuitive. --- pango/pango-ot-buffer.c | 4 ++-- pango/pango-ot-info.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'pango') diff --git a/pango/pango-ot-buffer.c b/pango/pango-ot-buffer.c index 26213a5a..100e6465 100644 --- a/pango/pango-ot-buffer.c +++ b/pango/pango-ot-buffer.c @@ -257,8 +257,8 @@ pango_ot_buffer_output (const PangoOTBuffer *buffer, if (is_hinted) advance = PANGO_UNITS_ROUND (advance); glyphs->glyphs[i].geometry.width = 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++; diff --git a/pango/pango-ot-info.c b/pango/pango-ot-info.c index 79c3cb2b..5ad5842c 100644 --- a/pango/pango-ot-info.c +++ b/pango/pango-ot-info.c @@ -394,8 +394,8 @@ _pango_ot_info_position (const PangoOTInfo *info, /* XXX reuse hb_font */ hb_font = hb_font_create (); hb_font_set_scale (hb_font, - ((guint64) info->face->size->metrics.x_scale * info->face->units_per_EM) >> 12, - ((guint64) info->face->size->metrics.y_scale * info->face->units_per_EM) >> 12); + (((guint64) info->face->size->metrics.x_scale * info->face->units_per_EM) >> 12), + -(((guint64) info->face->size->metrics.y_scale * info->face->units_per_EM) >> 12)); is_hinted = buffer->font->is_hinted; hb_font_set_ppem (hb_font, is_hinted ? info->face->size->metrics.x_ppem : 0, -- cgit v1.2.1