Skip to content

Conversation

@Connum
Copy link
Contributor

@Connum Connum commented Feb 14, 2023

Description

THIS IS A DRAFT ONLY, SEE BELOW!

Motivation and Context

Based on #486 adding read support, I thought I could implement writing support for LookupType 7 (Extension Substitution).
However it seems I'm way out of my comfort zone and stuck on finding the right approach to this.
What I've done so far is adding a subtableMaker for ExtensionSubstFormat1 tables and returning the extension as a new table to append after all the other subtables.

However, I'm not sure if the extensions are appended in the correct location (the spec is not clear on where they are supposed to be located - after the LookupList? Or at the end of the GSUB table? -, or at least I don't understand it) and how to replace the offset value in the corresponding extension substitution table afterwards. I tried to do it similar to the subsitution table offsets, but I wasn't able to figure it out and gave up.

Maybe this is still a good starting point for someone more clever than me to implement this.

@Connum Connum added help wanted Spec Related to the implementation of the Opentype specification writing support Anything related to writing support as opposed to parsing or rendering labels Feb 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

help wanted Spec Related to the implementation of the Opentype specification writing support Anything related to writing support as opposed to parsing or rendering

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add writing support for lookup table 7 (Extension Substitution Subtables)

1 participant