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

Ability to add ligature-substitutions via FontBuilder interface #3423

Open
Vftdan opened this issue Jan 19, 2024 · 0 comments
Open

Ability to add ligature-substitutions via FontBuilder interface #3423

Vftdan opened this issue Jan 19, 2024 · 0 comments

Comments

@Vftdan
Copy link

Vftdan commented Jan 19, 2024

Currently FontBuilder only has a method addFeatureVariations that only adds single-substitutions.
This issue proposes to create a FontBuilder method of a form:

    def addLigatureSubstitutions(self, mapping):
        from .otlLib.builder import buildLigatureSubstSubtable
        subtable = buildLigatureSubstSubtable(mapping)
        ...

that adds ligature substitutions to the GSUB table and adds all required metadata to other tables; or a more general method that can perform this task. Like with addFeatureVariations, the actual logic may be added as a function of varLib, feaLib or another fontTools module.

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

No branches or pull requests

1 participant