shithub: freetype+ttf2subf

Download patch

ref: baa41ff204e581fee745d0a2badbe62b35509e58
parent: 1d8d0b4ef962592d8f0f856a411140b8997f86fa
author: Werner Lemberg <[email protected]>
date: Sat Jan 30 02:44:30 EST 2016

[autofit] Minor tracing improvement.

* src/autofit/afhints.c (af_glyph_hints_dump_points): Insert newline
at the start of a new contour.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2016-01-30  Werner Lemberg  <[email protected]>
+
+	[autofit] Minor tracing improvement.
+
+	* src/autofit/afhints.c (af_glyph_hints_dump_points): Insert newline
+	at the start of a new contour.
+
 2016-01-28  Nikolaus Waxweiler  <[email protected]>
 
 	Remove unpatented hinter (3/3).
--- a/src/autofit/afhints.c
+++ b/src/autofit/afhints.c
@@ -304,9 +304,11 @@
   af_glyph_hints_dump_points( AF_GlyphHints  hints,
                               FT_Bool        to_stdout )
   {
-    AF_Point  points = hints->points;
-    AF_Point  limit  = points + hints->num_points;
-    AF_Point  point;
+    AF_Point   points  = hints->points;
+    AF_Point   limit   = points + hints->num_points;
+    AF_Point*  contour = hints->contours;
+    AF_Point*  climit  = contour + hints->num_contours;
+    AF_Point   point;
 
 
     AF_DUMP(( "Table of points:\n" ));
@@ -313,7 +315,7 @@
 
     if ( hints->num_points )
       AF_DUMP(( "  index  hedge  hseg  vedge  vseg  flags"
-                "  xorg  yorg  xscale  yscale   xfit    yfit\n" ));
+                "  xorg  yorg  xscale  yscale   xfit    yfit" ));
     else
       AF_DUMP(( "  (none)\n" ));
 
@@ -325,6 +327,13 @@
 
       char  buf1[16], buf2[16], buf3[16], buf4[16];
 
+
+      /* insert extra newline at the beginning of a contour */
+      if ( contour < climit && *contour == point )
+      {
+        AF_DUMP(( "\n" ));
+        contour++;
+      }
 
       AF_DUMP(( "  %5d  %5s %5s  %5s %5s  %s "
                 " %5d %5d %7.2f %7.2f %7.2f %7.2f\n",