[uniscribe] Fix negative advance
This happens with at least one test font I have.
This commit is contained in:
parent
99d3495576
commit
e6d5e4c310
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue