summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2015-08-20 15:39:06 +0100
committerBehdad Esfahbod <behdad@behdad.org>2015-08-20 15:39:06 +0100
commit163c435f1807c138da9f74f09d29d913eb9e29e9 (patch)
tree392e5821077b725ea7059bb57501bf1cfa5d0f6f
parent789b89ef7130ffe5f22c571fc3cb4e6d35456654 (diff)
downloadharfbuzz-163c435f1807c138da9f74f09d29d913eb9e29e9.tar.gz
[uniscribe] Fix negative offsets
Ouch!
-rw-r--r--src/hb-uniscribe.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/hb-uniscribe.cc b/src/hb-uniscribe.cc
index 3a08c747..01be0cc8 100644
--- a/src/hb-uniscribe.cc
+++ b/src/hb-uniscribe.cc
@@ -1006,8 +1006,8 @@ retry:
/* The rest is crap. Let's store position info there for now. */
info->mask = advances[i];
- info->var1.u32 = offsets[i].du;
- info->var2.u32 = offsets[i].dv;
+ info->var1.i32 = offsets[i].du;
+ info->var2.i32 = offsets[i].dv;
}
/* Set glyph positions */
@@ -1020,8 +1020,8 @@ retry:
/* TODO vertical */
pos->x_advance = x_mult * info->mask;
- pos->x_offset = x_mult * (backward ? -info->var1.u32 : info->var1.u32);
- pos->y_offset = y_mult * info->var2.u32;
+ pos->x_offset = x_mult * (backward ? -info->var1.i32 : info->var1.i32);
+ pos->y_offset = y_mult * info->var2.i32;
}
if (backward)