зеркало из https://github.com/stride3d/freetype.git
* 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:
Родитель
4c3cc76ba0
Коммит
d77e72295e
|
@ -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
|
||||
|
|
|
@ -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 );
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче