Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ttx_diff] Only report size issues if fontc > fontmake #1106

Merged
merged 1 commit into from
Nov 13, 2024
Merged

Conversation

cmyr
Copy link
Member

@cmyr cmyr commented Nov 12, 2024

If we're smaller and the ttx is equivalent, that seems fine.

@@ -513,6 +513,8 @@ def check_sizes(fontmake_ttf: Path, fontc_ttf: Path):
for key in shared_keys:
fontmake_len = fontmake[key]
fontc_len = fontc[key]
if fontc_len <= fontmake_len:
continue
len_ratio = min(fontc_len, fontmake_len) / max(fontc_len, fontmake_len)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alternately just say if fontc_len / fontmake_len > THRESHOLD?

If we're smaller and the ttx is equivalent, that seems fine.
@cmyr cmyr added this pull request to the merge queue Nov 13, 2024
Merged via the queue into main with commit a4f8e7e Nov 13, 2024
10 checks passed
@cmyr cmyr deleted the allow-smaller-us branch November 13, 2024 16:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants