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

[skrifa] tthint: adjust DELTAP/DELTAC limits #1353

Merged
merged 1 commit into from
Feb 11, 2025
Merged

Conversation

dfrg
Copy link
Member

@dfrg dfrg commented Feb 11, 2025

We limited these to point count/cvt size respectively but there are fonts (Arial is one) where these limits are not sufficient. Notably, you can have one exception per point/entry and ppem so we can't use these counts for hard limits.

Instead limit both to (stack_size / 2) since each iteration requires two elements from the stack.

We limited these to point count/cvt size respectively but there are fonts (Arial is one) where these limits are not sufficient. Notably, you can have one exception per point/entry _and_ ppem so we can't use these counts for hard limits.

Instead limit both to `(stack_size / 2)` since each iteration requires two elements from the stack.
Copy link
Member

@cmyr cmyr left a comment

Choose a reason for hiding this comment

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

godspeed 🫡

@dfrg dfrg merged commit 24fb1c8 into main Feb 11, 2025
10 checks passed
@dfrg dfrg deleted the adjust-delta-limits branch February 11, 2025 20:32
drott added a commit to drott/fontations that referenced this pull request Feb 24, 2025
Release tip of tree with fix for googlefonts#1363 hang in gsub
processing during autohinting of Noto Nastaliq.

Changes for read-fonts from read-fonts-v0.27.1 to 0.27.1
        5657ab8 [chore] Clippy day
        53407d0 [read-fonts] CFF charsets (googlefonts#1361)
Changes for write-fonts from write-fonts-v0.36.0 to 0.36.0
        5657ab8 [chore] Clippy day
        029f62f [font_builder] provide more expository comment
        7f95b52 [font_builder] test recommended table order
        a49be74 [font_builder] test checksum_adjustment
        ffc69ee [font_builder] compute head.checksum_adjustment and sort table in recommended order
        53407d0 [read-fonts] CFF charsets (googlefonts#1361)
Changes for skrifa from skrifa-v0.28.0 to 0.28.0
        e250138 [skrifa] autohint: use visited set when processing GSUB lookups (googlefonts#1365)
        441a388 [skrifa] Remove unused write-fonts dev-dep
        652b3ca Apply limits to cmap12 iterator (googlefonts#1352)
        24fb1c8 [skrifa] tthint: adjust DELTAP/DELTAC limits (googlefonts#1353)
drott added a commit that referenced this pull request Feb 24, 2025
Release tip of tree with fix for #1363 hang in gsub
processing during autohinting of Noto Nastaliq.

Changes for read-fonts from read-fonts-v0.27.1 to 0.27.1
        5657ab8 [chore] Clippy day
        53407d0 [read-fonts] CFF charsets (#1361)
Changes for write-fonts from write-fonts-v0.36.0 to 0.36.0
        5657ab8 [chore] Clippy day
        029f62f [font_builder] provide more expository comment
        7f95b52 [font_builder] test recommended table order
        a49be74 [font_builder] test checksum_adjustment
        ffc69ee [font_builder] compute head.checksum_adjustment and sort table in recommended order
        53407d0 [read-fonts] CFF charsets (#1361)
Changes for skrifa from skrifa-v0.28.0 to 0.28.0
        e250138 [skrifa] autohint: use visited set when processing GSUB lookups (#1365)
        441a388 [skrifa] Remove unused write-fonts dev-dep
        652b3ca Apply limits to cmap12 iterator (#1352)
        24fb1c8 [skrifa] tthint: adjust DELTAP/DELTAC limits (#1353)
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