I’d really like to use this awesome feature, but I guess I’m stuck setting the StylisticSets .
Is there any comprehensive tutorial about the latter thing? I.e. I had created an unmapped glyph - alternative letter „B”, named „B.ss01”.
Then, in the Open Type Designer I created „StylisticSet1_1 (ss01)”, what gave me access to to some mysterious table, where I can choose:
• Sylistic Set,
• Language ID (but what if I’d like to use te set in all languages?) and
• Content (what to type there???).
Then I added „ContextualAlternates1 (calt) / ChainingContext1”, but I have nothing to choose in the „Substitution Tables” column.
You can also use the Generate and Update OpenType Features dialog to automatically generate the feature(s) and accompanying lookup(s) for stylistic sets.
Within the OpenType Designer window click the first icon from the upper left corner. You will now be able to select which features you want to generate and/or update.
Stylistic Sets (ss01-ss20)
These allow for sets of stylistic variant glyphs corresponding to portions of the character set, e.g. multiple variants for lowercase letters in a Latin font. Be sure to name the variants with one of these suffixes: .ss01 .ss02 etc.
Thank you for both answers as they pushed me forward, so I’m playing around with the newly acquired knowledge.
I only noticed (FC11.5 Pro), that - after setting Chaining Context and checked „calt” in the preview options – neither the Preview window or preview in the Open Type Designer show the alternatives ONLY where they are intended to be, but they simply replace ALL found glyphs that have its ss01 twin, with their alternatives. Does it work like that, or had I messed up something?
Another question is slightly off-topic, but it haunts me recurrently: can I put more/all Lookups into one Feature (just like on the attached image)? I mean, will it work properly? I’m not sure if the Features, with their default names (seemingly, strictly related to the Lookups/GPOS), are simply intended to encourage to keep the project in orderly manner, but on the other hand, once created Lookup cannot be move into another Feature, so I guess there must be a reason for that.
As for me and my - very possibly - barbaric knowledge at the moment;), the amount of („unnecessary”) nesting single Lookups in Features seem to be somewhat irritating, I’d rather put all the Lookups straight in the Default (language) upper folder, without any Features whatsoever.
Stylistic Sets (ss01-ss20) are used to replace each of a range of characters with alternate glyphs. When the feature is enabled, each glyph in the lookup is replaced with its alternate substitution.
Character Variants (cv01=cv99) are similar, but typically used on a one-off basis.
Some features can use multiple lookups, and some lookups can be used by multiple features, but you cannot just dump lookups wherever you want to make the Script tree look nice. I rename my lookups to match the feature that uses them, but the default name is the lookup type with a numeric suffix, e.g. SingleSubstituion1, Ligature1, etc.
It seems that I’m still doing something wrong, though. I tested my font in Word 2010, and after setting Word to use the contextual alternates, it changes ALL the glyphs with defined substitutions to the substituted versions - with and without context :/.
I’ve finally found the source of my problems - it turned out, that it was mostly about “dumping lookups wherever I wanted”. At least in the end it gave me a way better understanding of the relation between Features and Lookups
I basically ended up with my font having three Features with single Lookup in each of them:
• Contextual Alternates with Chaining Context,
• Kerning From Kern Table with Kerning From Kern Table and
• Stylistic Set with Alternate.
Seems obvious, unless someone messes things up at the very beginning…