googlefonts / googlefonts/fontc

better reuse of lookups for inline contextual ligature substitutions

Open
#844 0 comments 0 reactions 0 assignees View on GitHub
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.