[truetype] A better fix for Savannah bug #38211.

* src/truetype/ttinterp.c (Ins_IP): Implement identical behaviour to
MS rasterizer if rp1 == rp2 (confirmed by Greg Hitchcock).
This commit is contained in:
Werner Lemberg 2013-02-05 19:23:16 +01:00
parent 0eb6316fde
commit 00dfa3304e
2 changed files with 18 additions and 5 deletions

View File

@ -1,3 +1,10 @@
2013-02-05 Werner Lemberg <wl@gnu.org>
[truetype] A better fix for Savannah bug #38211.
* src/truetype/ttinterp.c (Ins_IP): Implement identical behaviour to
MS rasterizer if rp1 == rp2 (confirmed by Greg Hitchcock).
2013-02-01 Alexei Podtelezhnikov <apodtele@gmail.com>
[pcf] Streamline parsing of PCF encoding table.

View File

@ -6979,11 +6979,17 @@
new_dist = FT_MulDiv( org_dist, cur_range, old_range );
else
{
/* use the middle position */
new_dist = cur_dist -
CUR_fast_dualproj( &CUR.zp2.cur[point] ) +
( CUR_fast_dualproj( &CUR.zp1.cur[CUR.GS.rp1] ) +
CUR_fast_dualproj( &CUR.zp1.cur[CUR.GS.rp2] ) ) / 2;
/* This is the same as what MS does for the invalid case: */
/* */
/* delta = (Original_Pt - Original_RP1) - */
/* (Current_Pt - Current_RP1) */
/* */
/* In FreeType speak: */
/* */
/* new_dist = cur_dist - */
/* org_dist - cur_dist; */
new_dist = -org_dist;
}
}
else