From e6d5e4c3106180cb22253c2c278b40f7c4c98f2f Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Wed, 6 Jan 2016 12:29:50 +0000 Subject: [PATCH] [uniscribe] Fix negative advance This happens with at least one test font I have. --- src/hb-uniscribe.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hb-uniscribe.cc b/src/hb-uniscribe.cc index 86bb84f93..7fda6788b 100644 --- a/src/hb-uniscribe.cc +++ b/src/hb-uniscribe.cc @@ -1019,7 +1019,7 @@ retry: hb_glyph_position_t *pos = &buffer->pos[i]; /* TODO vertical */ - pos->x_advance = x_mult * info->mask; + pos->x_advance = x_mult * (int32_t) info->mask; pos->x_offset = x_mult * (backward ? -info->var1.i32 : info->var1.i32); pos->y_offset = y_mult * info->var2.i32; }