From 4866be2c7b252182ec81ba2880fd2740afa20633 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Tue, 29 Jul 2014 10:58:56 -0400 Subject: [win32] Invert y_offset All these years, in the win32 backend, the y_offset was inverted. Ie. no vertical glyph positioning worked, ever... Sigh. --- modules/basic/basic-win32.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/basic/basic-win32.c b/modules/basic/basic-win32.c index db92a388..e9d020da 100644 --- a/modules/basic/basic-win32.c +++ b/modules/basic/basic-win32.c @@ -605,8 +605,8 @@ itemize_shape_and_place (PangoFont *font, { glyphs->glyphs[ng+glyphix].glyph = iglyphs[glyphix]; glyphs->glyphs[ng+glyphix].geometry.width = floor (0.5 + scale * advances[glyphix]); - glyphs->glyphs[ng+glyphix].geometry.x_offset = floor (0.5 + scale * offsets[glyphix].du); - glyphs->glyphs[ng+glyphix].geometry.y_offset = floor (0.5 + scale * offsets[glyphix].dv); + glyphs->glyphs[ng+glyphix].geometry.x_offset = floor (0.5 + scale * offsets[glyphix].du); + glyphs->glyphs[ng+glyphix].geometry.y_offset = -floor (0.5 + scale * offsets[glyphix].dv); } else { -- cgit v1.2.1