shithub: freetype+ttf2subf

Download patch

ref: fdcbaf19fef106522eb5a5e11acbd04a3fa6330f
parent: 24e897db28da40dc522886953cf301e3ff92c122
author: Werner Lemberg <[email protected]>
date: Sun Oct 21 06:40:12 EDT 2012

[smooth] Improve tracing.

* src/smooth/ftgrays.c (gray_sweep): Trace last sweep line of
current band also.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,10 +1,17 @@
+2012-10-21  Werner Lemberg  <[email protected]>
+
+	[smooth] Improve tracing.
+
+	* src/smooth/ftgrays.c (gray_sweep): Trace last sweep line of
+	current band also.
+
 2012-10-20  Alexei Podtelezhnikov  <[email protected]>
 
-        [truetype] Cheaper way to threshold angles between vectors.
+	[truetype] Cheaper way to threshold angles between vectors.
 
 	* src/truetype/ttinterp.c (Ins_ISECT): Thresholding tangent is a lot
 	cheaper than thresholding sine. 
-	
+
 2012-10-20  Werner Lemberg  <[email protected]>
 
 	[cff] Improve parsing of invalid real numbers.
--- a/src/smooth/ftgrays.c
+++ b/src/smooth/ftgrays.c
@@ -1400,7 +1400,26 @@
       ras.render_span( ras.span_y, ras.num_gray_spans,
                        ras.gray_spans, ras.render_span_data );
 
+#ifdef FT_DEBUG_LEVEL_TRACE
+
+    if ( ras.num_gray_spans > 0 )
+    {
+      FT_Span*  span;
+      int       n;
+
+
+      FT_TRACE7(( "y = %3d ", ras.span_y ));
+      span = ras.gray_spans;
+      for ( n = 0; n < ras.num_gray_spans; n++, span++ )
+        FT_TRACE7(( "[%d..%d]:%02x ",
+                    span->x, span->x + span->len - 1, span->coverage ));
+      FT_TRACE7(( "\n" ));
+    }
+
     FT_TRACE7(( "gray_sweep: end\n" ));
+
+#endif /* FT_DEBUG_LEVEL_TRACE */
+
   }