+
Skip to content

[feaLib] Don't try to combine ligature & multisub rules #3874

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
Jul 1, 2025

Conversation

cmyr
Copy link
Contributor

@cmyr cmyr commented Jun 26, 2025

I'm not sure that this patch is the correct solution to this problem, but it is a solution.

Specifically the problem is that the AnySubstBuilder can generate multiple lookups, but when this happens those extra lookups do not get added to the appropriate feature. My solution here is to force a new lookup whenever we see that the AnySubstBuilder would otherwise contain mixed multiple/ligature sub rules, which cannot be combined anyway.

Open to alternatives, but this does fix the issue.

@cmyr cmyr force-pushed the dont-combine-liga-and-multi branch from 6b33660 to 6191bf6 Compare July 1, 2025 14:42
I'm not sure that this patch is the correct solution to this problem,
but it is _a_ solution.

Specifically the problem is that the AnySubstBuilder can generate
multiple lookups, but when this happens those extra lookups do not get
added to the appropriate feature. My solution here is to force a new
lookup whenever we see that the AnySubstBuilder would otherwise contain
mixed multiple/ligature sub rules, which cannot be combined anyway.

Open to alternatives, but this does fix the issue.
@cmyr cmyr force-pushed the dont-combine-liga-and-multi branch from 6191bf6 to c100879 Compare July 1, 2025 16:00
@khaledhosny khaledhosny merged commit c327780 into fonttools:main Jul 1, 2025
11 checks passed
@cmyr cmyr deleted the dont-combine-liga-and-multi branch July 1, 2025 16:57
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] miscompilation with mixed multi and ligature subst rules
3 participants
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载