freetype-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ft-devel] Possible typo in cf2hints.c


From: Dave Arnold
Subject: Re: [ft-devel] Possible typo in cf2hints.c
Date: Fri, 25 Jul 2014 17:23:31 -0700
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0

Indeed, you are correct. This is a typo. Good catch!

Thanks.

-Dave

On 7/17/2014 3:26 AM, maks wrote:
cf2_glyphpath_computeOffset()

/* third quadrant, -x -y */

if ( -dx > -2 * dy )
{
   /* -x */
   *x = 0;
   *y = 2 * glyphpath->yOffset;
}
else if ( -dy > -2 * dx )
{
   /* -y */
   *x = -glyphpath->xOffset;
   *y = glyphpath->xOffset;   // <===
}
else
{
   /* -x -y */
   *x = FT_MulFix( cf2_floatToFixed( -0.7 ),
                   glyphpath->xOffset );
   *y = FT_MulFix( cf2_floatToFixed( 1.0 + 0.7 ),
                   glyphpath->yOffset );
}

Maybe it should be "*y = glyphpath->yOffset;" ?

_______________________________________________
Freetype-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/freetype-devel
.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]