* src/truetype/ttinterp.c (Ins_IP): Handle case `org_dist == 0'

correctly.  This fixes glyphs `t' and `h' of Arial Narrow at 12ppem.
This commit is contained in:
Werner Lemberg 2008-06-05 22:07:19 +00:00
parent 4c3cc76ba0
commit d77e72295e
2 changed files with 12 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2008-06-06 Werner Lemberg <wl@gnu.org>
* src/truetype/ttinterp.c (Ins_IP): Handle case `org_dist == 0'
correctly. This fixes glyphs `t' and `h' of Arial Narrow at 12ppem.
2008-06-03 Werner Lemberg <wl@gnu.org>
* include/freetype/ftcache.h (FTC_FaceID): Change type back to

View File

@ -6232,9 +6232,13 @@
org_dist = CUR_Func_dualproj( &CUR.zp2.orus[point], orus_base );
cur_dist = CUR_Func_project ( &CUR.zp2.cur[point], cur_base );
new_dist = ( old_range != 0 )
? TT_MULDIV( org_dist, cur_range, old_range )
: cur_dist;
if ( org_dist )
new_dist = ( old_range != 0 )
? TT_MULDIV( org_dist, cur_range, old_range )
: cur_dist;
else
new_dist = 0;
CUR_Func_move( &CUR.zp2, (FT_UShort)point, new_dist - cur_dist );
}