summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Arnold <darnold@adobe.com>2016-11-18 18:02:10 -0800
committerDave Arnold <darnold@adobe.com>2016-11-18 18:02:10 -0800
commit410ff09eb6866881907cf51eeae79e41f9375c1b (patch)
tree74d810aea06482e96241507d9aecdb10f9456eb7
parent8dba6305da9d9bf3e985d67d3103afefc2fb97eb (diff)
downloadfreetype2-410ff09eb6866881907cf51eeae79e41f9375c1b.tar.gz
Experimental fix for double adjustment of advance.
-rw-r--r--src/truetype/ttgxvar.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/truetype/ttgxvar.c b/src/truetype/ttgxvar.c
index e5ed512a3..58dac8213 100644
--- a/src/truetype/ttgxvar.c
+++ b/src/truetype/ttgxvar.c
@@ -2510,7 +2510,12 @@ Exit:
FT_Pos delta_y = FT_MulFix( deltas_y[j], apply );
- outline->points[j].x += delta_x;
+ /* experimental fix for double adjustment of advance width */
+ /* adjust phantom point 2 only if there's no HVAR */
+ /* TODO: handle LSB (pp1) and VVAR (pp3, pp4) too */
+ if ( j != ( n_points - 3 ) || blend->hvar_checked == FALSE )
+ outline->points[j].x += delta_x;
+
outline->points[j].y += delta_y;
#ifdef FT_DEBUG_LEVEL_TRACE