From 0d8ad1c982dc7e4efad356d47a9e83d4ae99401e Mon Sep 17 00:00:00 2001 From: Colin Rofls Date: Fri, 17 Jan 2025 11:11:31 -0500 Subject: [PATCH] [ttx_diff] Mark adjusted points as 'diff_adjusted' Previously it was just 'adjusted', which is general enough that it was unclear to me when I saw it in diffs that it had originated in the ttx_diff script, and not in the original ttx output. This name will hopefully make it more clear that this is a diff-specific thing. --- resources/scripts/ttx_diff.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/scripts/ttx_diff.py b/resources/scripts/ttx_diff.py index 8da25519..ba6a30e8 100755 --- a/resources/scripts/ttx_diff.py +++ b/resources/scripts/ttx_diff.py @@ -425,8 +425,8 @@ def allow_some_off_by_ones(fontc, fontmake, container, name_attr, coord_holder): float(fontmake_el.attrib[attr]) - float(fontc_el.attrib[attr]) ) if 0.0 < delta_x <= 1.0: - fontc_el.attrib["adjusted"] = "1" - fontmake_el.attrib["adjusted"] = "1" + fontc_el.attrib["diff_adjusted"] = "1" + fontmake_el.attrib["diff_adjusted"] = "1" fontc_el.attrib[attr] = fontmake_el.attrib[attr] spent += 1 if spent >= off_by_one_budget: