projects
/
platform
/
upstream
/
libHarfBuzzSharp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
99d3495
)
[uniscribe] Fix negative advance
author
Behdad Esfahbod
<behdad@behdad.org>
Wed, 6 Jan 2016 12:29:50 +0000
(12:29 +0000)
committer
Behdad Esfahbod
<behdad@behdad.org>
Wed, 6 Jan 2016 12:29:50 +0000
(12:29 +0000)
This happens with at least one test font I have.
src/hb-uniscribe.cc
patch
|
blob
|
history
diff --git
a/src/hb-uniscribe.cc
b/src/hb-uniscribe.cc
index
86bb84f
..
7fda678
100644
(file)
--- 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;
}