diff options
author | Alexei Podtelezhnikov <apodtele@gmail.com> | 2019-06-12 21:58:35 -0400 |
---|---|---|
committer | Alexei Podtelezhnikov <apodtele@gmail.com> | 2019-06-12 21:58:35 -0400 |
commit | bdac4cbe6fb77108a753be859fe73579c5cddc97 (patch) | |
tree | 8092fa70ae4396e12b67a3a4df7a256712c19fa5 | |
parent | d1b16325e27b766c27cc9f569c0aa334f1ecb732 (diff) | |
download | freetype2-bdac4cbe6fb77108a753be859fe73579c5cddc97.tar.gz |
Rendering considerations.
-rw-r--r-- | src/smooth/ftgrays.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/smooth/ftgrays.c b/src/smooth/ftgrays.c index bab07a1ce..6a824c471 100644 --- a/src/smooth/ftgrays.c +++ b/src/smooth/ftgrays.c @@ -646,6 +646,9 @@ typedef ptrdiff_t FT_PtrDist; dx = -dx; } + /* the fractional part of y-delta is mod/dx. It is essential to */ + /* keep track of its accumulation for accurate rendering. */ + /* XXX: y-delta and x-delta below should be related. */ FT_DIV_MOD( TCoord, p, dx, delta, mod ); ras.area += (TArea)( ( fx1 + first ) * delta ); @@ -783,6 +786,8 @@ typedef ptrdiff_t FT_PtrDist; dy = -dy; } + /* the fractional part of x-delta is mod/dy. It is essential to */ + /* keep track of its accumulation for accurate rendering. */ FT_DIV_MOD( TCoord, p, dy, delta, mod ); x = ras.x + delta; |