[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[freetype2] OpenType-1.8 410ff09 2/5: Experimental fix for double adjust
From: |
Dave Arnold |
Subject: |
[freetype2] OpenType-1.8 410ff09 2/5: Experimental fix for double adjustment of advance. |
Date: |
Tue, 22 Nov 2016 02:08:38 +0000 (UTC) |
branch: OpenType-1.8
commit 410ff09eb6866881907cf51eeae79e41f9375c1b
Author: Dave Arnold <address@hidden>
Commit: Dave Arnold <address@hidden>
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 e5ed512..58dac82 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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [freetype2] OpenType-1.8 410ff09 2/5: Experimental fix for double adjustment of advance.,
Dave Arnold <=