summaryrefslogtreecommitdiff
path: root/modules/basic/basic-win32.c
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2014-07-29 10:58:56 -0400
committerBehdad Esfahbod <behdad@behdad.org>2014-07-29 10:58:56 -0400
commit4866be2c7b252182ec81ba2880fd2740afa20633 (patch)
treebc06b5bfa6a247b9f050ed371e817d2768f3a47e /modules/basic/basic-win32.c
parent8d4d42e7b34ef625677a7adae020b0e6c7ebc136 (diff)
downloadpango-4866be2c7b252182ec81ba2880fd2740afa20633.tar.gz
[win32] Invert y_offset
All these years, in the win32 backend, the y_offset was inverted. Ie. no vertical glyph positioning worked, ever... Sigh.
Diffstat (limited to 'modules/basic/basic-win32.c')
-rw-r--r--modules/basic/basic-win32.c4
1 files 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
{