[truetype] Really fix #52082.

* src/truetype/ttinterp.c (Ins_MDRP): Correct conditional.
GSoC-2017-kushal
Ben Wagner 7 years ago committed by Werner Lemberg
parent b0103677be
commit 63be40bccf
  1. 6
      ChangeLog
  2. 7
      src/truetype/ttinterp.c

@ -1,3 +1,9 @@
2017-09-23 Ben Wagner <bungeman@google.com>
[truetype] Really fix #52082.
* src/truetype/ttinterp.c (Ins_MDRP): Correct conditional.
2017-09-23 Werner Lemberg <wl@gnu.org>
[otvalid] Handle `GDEF' v1.2 and v1.3 tables.

@ -6079,8 +6079,11 @@
/* single width cut-in test */
/* |org_dist - single_width_value| < single_width_cutin */
if ( org_dist < exc->GS.single_width_value + exc->GS.single_width_cutin ||
org_dist > exc->GS.single_width_value - exc->GS.single_width_cutin )
if ( exc->GS.single_width_cutin > 0 &&
( org_dist < exc->GS.single_width_value +
exc->GS.single_width_cutin ||
org_dist > exc->GS.single_width_value -
exc->GS.single_width_cutin ) )
{
if ( org_dist >= 0 )
org_dist = exc->GS.single_width_value;

Loading…
Cancel
Save