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

implement extension substitution for gsub lookuptype 7 #113

Open
Pomax opened this issue Mar 1, 2021 · 0 comments
Open

implement extension substitution for gsub lookuptype 7 #113

Pomax opened this issue Mar 1, 2021 · 0 comments
Assignees
Labels
completion work to complete a feature that was started previously

Comments

@Pomax
Copy link
Owner

Pomax commented Mar 1, 2021

As per https://docs.microsoft.com/en-us/typography/opentype/spec/gsub#lookuptype-7-extension-substitution the lookup type 7 table is "actually not this, but a different lookup table", where the extensionLookupType field tells us the class we'll need to parse the table data as, and extensionOffset tells us where that table data starts.

This means calling buildSubtable(extensionLookupType, p where p is our parser, already pegged to the start of the substitution's byte offset.

@Pomax Pomax added the completion work to complete a feature that was started previously label Mar 1, 2021
@Pomax Pomax self-assigned this Mar 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
completion work to complete a feature that was started previously
Projects
None yet
Development

No branches or pull requests

1 participant