[interpolatable] Minor tweak

This commit is contained in:
Behdad Esfahbod 2023-12-02 08:31:39 -05:00
parent 2e764bf179
commit ef90c377d1

View File

@ -350,23 +350,22 @@ def test_gen(
glyph0, glyph1, ix, tolerance, matching glyph0, glyph1, ix, tolerance, matching
) )
if proposed_point or reverse: if this_tolerance < tolerance:
if this_tolerance < tolerance: yield (
yield ( glyph_name,
glyph_name, {
{ "type": "wrong_start_point",
"type": "wrong_start_point", "contour": ix,
"contour": ix, "master_1": names[m0idx],
"master_1": names[m0idx], "master_2": names[m1idx],
"master_2": names[m1idx], "master_1_idx": m0idx,
"master_1_idx": m0idx, "master_2_idx": m1idx,
"master_2_idx": m1idx, "value_1": 0,
"value_1": 0, "value_2": proposed_point,
"value_2": proposed_point, "reversed": reverse,
"reversed": reverse, "tolerance": this_tolerance,
"tolerance": this_tolerance, },
}, )
)
else: else:
# Weight check. # Weight check.
# #