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

better reuse of lookups for inline contextual ligature substitutions #844

Open
cmyr opened this issue Jun 3, 2024 · 0 comments
Open

better reuse of lookups for inline contextual ligature substitutions #844

cmyr opened this issue Jun 3, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@cmyr
Copy link
Member

cmyr commented Jun 3, 2024

Currently we will create a new lookup for each inline contextual ligature substitution; that is, given the fea,

feature test {
    sub f' i' by f_i;
    sub f' f' by f_f;
} test;

we will generate three lookups: one contextual lookup and two ligature substitution lookups.

I'm not sure how commonly used this syntax is, and our behaviour does match fonttools, but it doesn't match afdko (which combines the lookups).

So low priority, but another situation where some optimization is possible.

@cmyr cmyr added the enhancement New feature or request label Jun 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant