提交 e6d5e4c3 编写于 作者: B Behdad Esfahbod

[uniscribe] Fix negative advance

This happens with at least one test font I have.
上级 99d34955
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册