shithub: freetype+ttf2subf

Download patch

ref: 71b8f3f2ed06ce2a437b31e34c75e6aeab781640
parent: be54a68c9dfd89a2d5c88b1639821211e922e539
author: Werner Lemberg <[email protected]>
date: Fri Jul 4 03:22:06 EDT 2008

* src/raster/ftraster.c (Draw_Sweep): If span is smaller than one
pixel, only check for dropouts if neither start nor end point lies
on a pixel center.  This fixes Savannah bug #23762.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-07-04  Werner Lemberg  <[email protected]>
+
+	* src/raster/ftraster.c (Draw_Sweep): If span is smaller than one
+	pixel, only check for dropouts if neither start nor end point lies
+	on a pixel center.  This fixes Savannah bug #23762.
+
 2008-06-29  Werner Lemberg  <[email protected]>
 
 	* Version 2.3.7 released.
--- a/src/raster/ftraster.c
+++ b/src/raster/ftraster.c
@@ -2867,11 +2867,12 @@
             x2 = xs;
           }
 
-          if ( x2 - x1 <= ras.precision )
-          {
-            e1 = FLOOR( x1 );
-            e2 = CEILING( x2 );
+          e1 = FLOOR( x1 );
+          e2 = CEILING( x2 );
 
+          if ( x2 - x1 <= ras.precision &&
+               e1 != x1 && e2 != x2     )
+          {
             if ( e1 > e2 || e2 == e1 + ras.precision )
             {
               if ( ras.dropOutControl != 2 )