[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.
This commit is contained in:
Werner Lemberg 2015-04-01 15:55:41 +02:00
parent db8df797d0
commit a2fa657a03
4 changed files with 20 additions and 9 deletions

View File

@ -1,3 +1,12 @@
2015-04-01 Werner Lemberg <wl@gnu.org>
[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 <wl@gnu.org>
[autofit] Make debugging stuff work again.

View File

@ -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:

View File

@ -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"

View File

@ -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;