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
varLib.featureVars needs rethinking #2316
Comments
[
Yes, it was a concious decision to make feature variations at least possible for the most common and obvious use case, one that could also easily be added to .designspace. Making it as general as the OT spec allows would have prevented getting this stuff done within a reasonable amount of time, because it's so much more complex. At least that's how I remember seeing it back then. |
That's fine; I understand the historical basis for it, and it was the right thing at the time. But now we are thinking about extending things to take full advantage of the possibilities of the OTspec, I am wondering how to take things forward. |
I'm trying to complete the implementation of the variable FEA syntax by adding support for conditionsets and the
variation
block. I presumed that I would implement the builder for the variation block by usingvarLib.featureVars
, but...I think what we need to do to correctly implement feature variations is to first change
addFeatureVariationsRaw
so that it takes atable
parameter, and then do the right thing for GPOS as well as GSUB. This part is easy.But the next part I can't quite figure out. Instead of passing in a list of
(Region, Substitution)
s, I think we want to pass in a list of(Region, FeatureRecord)
s. But what this means foroverlayFeatureVariations
, I have no idea.Here's the example
variation
block from the proposed FEA spec:But one could equally imagine
The text was updated successfully, but these errors were encountered: