Commit 137c88880d63ec9f78975af760db335dc4df95fa

David Turner 2000-03-17T12:47:49

updated the "smooth" anti-aliaser. By increasing the number of segments used to decompose a bezier curve, we get rid of the "fuzz-fuzz" factor. it's also faster than the standard renderer after tweaking. Note that it isn't completed yet..

diff --git a/demos/src/ftgrays.c b/demos/src/ftgrays.c
index 54dfc75..a24196a 100644
--- a/demos/src/ftgrays.c
+++ b/demos/src/ftgrays.c
@@ -79,7 +79,7 @@
 
 #endif
 
-#define  PIXEL_BITS  7
+#define  PIXEL_BITS  8
 #define  ONE_PIXEL   (1L << PIXEL_BITS)
 #define  PIXEL_MASK  (-1L << PIXEL_BITS)
 #define  TRUNC(x)    ((x) >> PIXEL_BITS)
@@ -479,7 +479,7 @@ int  render_conic( RAS_ARG_ FT_Vector* control, FT_Vector* to )
   if (dx < dy) dx = dy;
   
   level = 1;
-  dx = dx/32;
+  dx = dx/16;
   while ( dx > 0 )
   {
     dx >>= 1;
@@ -573,6 +573,8 @@ int  render_cubic( RAS_ARG_ FT_Vector* control1,
   db = dx;
    
   level = 1;
+  da    = da/16;
+  db    = db/32;
   while ( da > 0 || db > 0 )
   {
     da >>= 1;