[HarfBuzz] harfbuzz: Branch 'master'
Behdad Esfahbod
behdad at kemper.freedesktop.org
Wed Jan 6 04:30:39 PST 2016
src/hb-uniscribe.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit e6d5e4c3106180cb22253c2c278b40f7c4c98f2f
Author: Behdad Esfahbod <behdad at behdad.org>
Date: Wed Jan 6 12:29:50 2016 +0000
[uniscribe] Fix negative advance
This happens with at least one test font I have.
diff --git a/src/hb-uniscribe.cc b/src/hb-uniscribe.cc
index 86bb84f..7fda678 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;
}
More information about the HarfBuzz
mailing list