freetype-devel
[Top][All Lists]
Advanced

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

[ft-devel] Possible typo in cf2hints.c


From: maks
Subject: [ft-devel] Possible typo in cf2hints.c
Date: Thu, 17 Jul 2014 13:26:09 +0300

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;" ?


reply via email to

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