googlefonts / googlefonts/fontc
better reuse of lookups for inline contextual ligature substitutions
Open
enhancement
- Dominant language
- Rust
- Stars
- 193
- Forks
- 21
- Avg merge
- 1d 20h
- Merged PRs (30d)
- 60
Description
Currently we will create a new lookup for each inline contextual ligature substitution; that is, given the fea,
```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.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.