* src/cff/cf2font.c (cf2_computeDarkening): Initialize darkenAmount.

This line was lost in commit 89ca1fd6 (from 2013-06-25).  The effect
is to use a previous darkening amount when producing an unhinted,
unscaled outline.  This can cause autohint samples in ftgrid and
ftview to be based on darkened CFF outlines instead of unhinted,
undarkened ones.
This commit is contained in:
Dave Arnold 2013-10-02 11:04:06 +02:00 committed by Werner Lemberg
parent 3a2cb0f881
commit 0b33045285
2 changed files with 11 additions and 0 deletions

View File

@ -1,3 +1,13 @@
2013-10-02 Dave Arnold <darnold@adobe.com>
* src/cff/cf2font.c (cf2_computeDarkening): Initialize darkenAmount.
This line was lost in commit 89ca1fd6 (from 2013-06-25). The effect
is to use a previous darkening amount when producing an unhinted,
unscaled outline. This can cause autohint samples in ftgrid and
ftview to be based on darkened CFF outlines instead of unhinted,
undarkened ones.
2013-09-29 Dave Arnold <darnold@adobe.com>
Fix Savannah bug #39295.

View File

@ -101,6 +101,7 @@
/* convenience. */
CF2_Fixed stemWidthPer1000, scaledStem;
*darkenAmount = 0;
if ( boldenAmount == 0 && !stemDarkened )
return;