ref: a2fa657a03f17ef9cd79b4ad529f08cfe676aa1c
parent: db8df797d088e2e861bafb81dedb4106f15523be
author: Werner Lemberg <[email protected]>
date: Wed Apr 1 11:55:41 EDT 2015
[autofit] Call dumper functions for tracing. * src/autofit/afcjk.c (af_cjk_hints_apply): Remove dead code. * src/autofit/afhints.c (af_glyph_hints_dump_points): Minor improvement. * src/autofit/afmodule.c (af_autofitter_load_glyph): Implement it.
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,14 @@
2015-04-01 Werner Lemberg <[email protected]>
+ [autofit] Call dumper functions for tracing.
+
+ * src/autofit/afcjk.c (af_cjk_hints_apply): Remove dead code.
+ * src/autofit/afhints.c (af_glyph_hints_dump_points): Minor
+ improvement.
+ * src/autofit/afmodule.c (af_autofitter_load_glyph): Implement it.
+
+2015-04-01 Werner Lemberg <[email protected]>
+
[autofit] Make debugging stuff work again.
The interface to ftgrid was broken in the series of commits starting
--- a/src/autofit/afcjk.c
+++ b/src/autofit/afcjk.c
@@ -2239,12 +2239,6 @@
}
}
-#if 0
- af_glyph_hints_dump_points( hints );
- af_glyph_hints_dump_segments( hints );
- af_glyph_hints_dump_edges( hints );
-#endif
-
af_glyph_hints_save( hints, outline );
Exit:
--- a/src/autofit/afhints.c
+++ b/src/autofit/afhints.c
@@ -231,9 +231,13 @@
AF_Point point;
- AF_DUMP(( "Table of points:\n"
- " [ index | xorg | yorg | xscale | yscale"
- " | xfit | yfit | flags ]\n" ));
+ AF_DUMP(( "Table of points:\n" ));
+
+ if ( hints->num_points )
+ AF_DUMP(( " [ index | xorg | yorg | xscale | yscale"
+ " | xfit | yfit | flags ]\n" ));
+ else
+ AF_DUMP(( " (none)\n" ));
for ( point = points; point < limit; point++ )
AF_DUMP(( " [ %5d | %5d | %5d | %6.2f | %6.2f"
--- a/src/autofit/afmodule.c
+++ b/src/autofit/afmodule.c
@@ -302,6 +302,10 @@
error = af_loader_load_glyph( loader, module, slot->face,
glyph_index, load_flags );
+ af_glyph_hints_dump_points( hints, 0 );
+ af_glyph_hints_dump_segments( hints, 0 );
+ af_glyph_hints_dump_edges( hints, 0 );
+
af_loader_done( loader );
return error;