diff options
author | Behdad Esfahbod <behdad@behdad.org> | 2011-04-21 15:17:03 -0400 |
---|---|---|
committer | Behdad Esfahbod <behdad@behdad.org> | 2011-04-21 15:17:03 -0400 |
commit | c592e19bb9235b6bd51293bfd25b8d40d1ae3aa7 (patch) | |
tree | c7213f95f46b2f5032fbbfc4a00809ea0aa44325 /modules/basic | |
parent | bf99026f8dbe054e9c59bf5a891b76b71ea912b7 (diff) | |
download | pango-c592e19bb9235b6bd51293bfd25b8d40d1ae3aa7.tar.gz |
[HB] Make y grow down
More intuitive.
Diffstat (limited to 'modules/basic')
-rw-r--r-- | 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 24a84270..119b19e7 100644 --- a/modules/basic/basic-fc.c +++ b/modules/basic/basic-fc.c @@ -261,8 +261,8 @@ basic_engine_shape (PangoEngineShape *engine G_GNUC_UNUSED, NULL); hb_font_set_scale (hb_font, /* XXX CTM */ - ((guint64) ft_face->size->metrics.x_scale * ft_face->units_per_EM) >> 12, - ((guint64) ft_face->size->metrics.y_scale * ft_face->units_per_EM) >> 12); + (((guint64) ft_face->size->metrics.x_scale * ft_face->units_per_EM) >> 12), + -(((guint64) ft_face->size->metrics.y_scale * ft_face->units_per_EM) >> 12)); is_hinted = fc_font->is_hinted; hb_font_set_ppem (hb_font, is_hinted ? ft_face->size->metrics.x_ppem : 0, @@ -295,8 +295,8 @@ basic_engine_shape (PangoEngineShape *engine G_GNUC_UNUSED, advance = PANGO_UNITS_ROUND (advance); */ 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++; |