[uniscribe] Fix negative advance

This happens with at least one test font I have.
This commit is contained in:
Behdad Esfahbod 2016-01-06 12:29:50 +00:00
parent 99d3495576
commit e6d5e4c310
1 changed files with 1 additions and 1 deletions

View File

@ -1019,7 +1019,7 @@ retry:
hb_glyph_position_t *pos = &buffer->pos[i]; hb_glyph_position_t *pos = &buffer->pos[i];
/* TODO vertical */ /* 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->x_offset = x_mult * (backward ? -info->var1.i32 : info->var1.i32);
pos->y_offset = y_mult * info->var2.i32; pos->y_offset = y_mult * info->var2.i32;
} }