Skip to content

[feaLib] Add promoted single substitutions to aalt feature #3847

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

Merged
merged 1 commit into from
May 27, 2025

Conversation

khaledhosny
Copy link
Collaborator

If a single substitution was promoted to a multiple or ligature substitutions, we would no longer add it to aalt feature (when requested) since only single and alternate substations are added there.

This can be considered a regression from lookup promotion. Since a single-looking substitution wouldn’t occurs in ligature or multiple substitution unless we promoted it, it should be safe to add these to allt feature.

Fixes #3845

If a single substitution was promoted to a multiple or ligature
substitutions, we would no longer add it to aalt feature (when
requested) since only single and alternate substations are added there.

This can be considered a regression from lookup promotion. Since a
single-looking substitution wouldn’t occurs in ligature or multiple
substitution unless we promoted it, it should be safe to add these to
allt feature.

Fixes #3845
Copy link
Contributor

@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.

looks easy enough, I'll see how annoying it is in rust... 😒

@khaledhosny khaledhosny merged commit dff7805 into main May 27, 2025
11 checks passed
@khaledhosny khaledhosny deleted the fealib-aalt-promoted-lookups branch May 27, 2025 20:49
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.

[feaLib] funny potential miscompilation when merging single-sub and ligature rules
2 participants