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

Use empty anchor as fallback when parsing mark anchors #419

Merged
merged 1 commit into from
Oct 29, 2024

Conversation

JimBobSquarePants
Copy link
Member

Prerequisites

  • I have written a descriptive pull-request title
  • I have verified that there are no overlapping pull-requests open
  • I have verified that I am following matches the existing coding patterns and practice as demonstrated in the repository. These follow strict Stylecop rules 👮.
  • I have provided test coverage for my change (where applicable)

Description

Fixes #417

When comparing our behaviour with other libraries it appears we are too strict when loading anchor tables. I've refactored to code to mimic Harfbuzz behavior of falling back to an empty offset when fonts contain errors. Shaping results have been verified wiith a 3rd party.

@JimBobSquarePants JimBobSquarePants changed the title Use empty anchor as fallback for Use empty anchor as fallback when parsing mark anchors Oct 29, 2024
@JimBobSquarePants JimBobSquarePants merged commit 00fa0f0 into main Oct 29, 2024
15 checks passed
@JimBobSquarePants JimBobSquarePants deleted the js/fix-417 branch October 29, 2024 08:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TextMeasurer throws exception while working with NotoSans font
2 participants