From 2cf94f75ae5f5db1e75ccc74576c0ff19316acb8 Mon Sep 17 00:00:00 2001 From: Werner Lemberg Date: Thu, 29 Oct 2015 20:51:33 +0100 Subject: [PATCH] Synchronize with FreeType. This corresponds to commit 02cfd71498fda2fca19a8fc70a4c9b7a912425a0, `* src/autofit/afhints.c (af_glyph_hints_dump_points): Minor.'. Also don't show vertical edges and segments, since we only have vertical hinting. --- lib/tahints.c | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/lib/tahints.c b/lib/tahints.c index abba087..9f06452 100644 --- a/lib/tahints.c +++ b/lib/tahints.c @@ -310,7 +310,7 @@ ta_glyph_hints_dump_points(TA_GlyphHints hints) TA_LOG(("Table of points:\n")); if (hints->num_points) - TA_LOG((" index hedge hseg vedge vseg flags" + TA_LOG((" index hedge hseg flags" " xorg yorg xscale yscale xfit yfit\n")); else TA_LOG((" (none)\n")); @@ -318,22 +318,19 @@ ta_glyph_hints_dump_points(TA_GlyphHints hints) for (point = points; point < limit; point++) { int point_idx = TA_INDEX_NUM(point, points); - int segment_idx_0 = ta_get_segment_index(hints, point_idx, 0); int segment_idx_1 = ta_get_segment_index(hints, point_idx, 1); - char buf1[16], buf2[16], buf3[16], buf4[16]; + char buf1[16], buf2[16]; - TA_LOG((" %5d %5s %5s %5s %5s %c " + /* we don't show vertical edges since they are never used */ + TA_LOG((" %5d %5s %5s %s " " %5d %5d %7.2f %7.2f %7.2f %7.2f\n", point_idx, ta_print_idx(buf1, ta_get_edge_index(hints, segment_idx_1, 1)), ta_print_idx(buf2, segment_idx_1), - ta_print_idx(buf3, - ta_get_edge_index(hints, segment_idx_0, 0)), - ta_print_idx(buf4, segment_idx_0), - (point->flags & TA_FLAG_WEAK_INTERPOLATION) ? 'w' : '-', + (point->flags & TA_FLAG_WEAK_INTERPOLATION) ? "weak" : " -- ", point->fx, point->fy, -- 2.11.4.GIT