[autofit] Minor tracing improvement.
* src/autofit/afhints.c (af_glyph_hints_dump_points): Insert newline at the start of a new contour.
This commit is contained in:
parent
1d8d0b4ef9
commit
baa41ff204
|
@ -1,3 +1,10 @@
|
||||||
|
2016-01-30 Werner Lemberg <wl@gnu.org>
|
||||||
|
|
||||||
|
[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 <madigens@gmail.com>
|
2016-01-28 Nikolaus Waxweiler <madigens@gmail.com>
|
||||||
|
|
||||||
Remove unpatented hinter (3/3).
|
Remove unpatented hinter (3/3).
|
||||||
|
|
|
@ -306,6 +306,8 @@
|
||||||
{
|
{
|
||||||
AF_Point points = hints->points;
|
AF_Point points = hints->points;
|
||||||
AF_Point limit = points + hints->num_points;
|
AF_Point limit = points + hints->num_points;
|
||||||
|
AF_Point* contour = hints->contours;
|
||||||
|
AF_Point* climit = contour + hints->num_contours;
|
||||||
AF_Point point;
|
AF_Point point;
|
||||||
|
|
||||||
|
|
||||||
|
@ -313,7 +315,7 @@
|
||||||
|
|
||||||
if ( hints->num_points )
|
if ( hints->num_points )
|
||||||
AF_DUMP(( " index hedge hseg vedge vseg flags"
|
AF_DUMP(( " index hedge hseg vedge vseg flags"
|
||||||
" xorg yorg xscale yscale xfit yfit\n" ));
|
" xorg yorg xscale yscale xfit yfit" ));
|
||||||
else
|
else
|
||||||
AF_DUMP(( " (none)\n" ));
|
AF_DUMP(( " (none)\n" ));
|
||||||
|
|
||||||
|
@ -326,6 +328,13 @@
|
||||||
char buf1[16], buf2[16], buf3[16], buf4[16];
|
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 "
|
AF_DUMP(( " %5d %5s %5s %5s %5s %s "
|
||||||
" %5d %5d %7.2f %7.2f %7.2f %7.2f\n",
|
" %5d %5d %7.2f %7.2f %7.2f %7.2f\n",
|
||||||
point_idx,
|
point_idx,
|
||||||
|
|
Loading…
Reference in New Issue