From 410ff09eb6866881907cf51eeae79e41f9375c1b Mon Sep 17 00:00:00 2001 From: Dave Arnold Date: Fri, 18 Nov 2016 18:02:10 -0800 Subject: Experimental fix for double adjustment of advance. --- src/truetype/ttgxvar.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 -- cgit v1.2.1