Skip to content

Commit

Permalink
Merge pull request #1106 from googlefonts/allow-smaller-us
Browse files Browse the repository at this point in the history
[ttx_diff] Only report size issues if fontc > fontmake
  • Loading branch information
cmyr authored Nov 13, 2024
2 parents 5ba53cf + ffcfadf commit a4f8e7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/scripts/ttx_diff.py
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@ def check_sizes(fontmake_ttf: Path, fontc_ttf: Path):
for key in shared_keys:
fontmake_len = fontmake[key]
fontc_len = fontc[key]
len_ratio = min(fontc_len, fontmake_len) / max(fontc_len, fontmake_len)
len_ratio = fontc_len / fontmake_len
if (1 - len_ratio) > THRESHOLD:
rel_len = fontc_len - fontmake_len
eprint(f"{key} {fontmake_len} {fontc_len} {len_ratio:.3} {rel_len}")
Expand Down

0 comments on commit a4f8e7e

Please sign in to comment.