Chaining Context Substitutions

Discuss FontCreator here, please do not post support requests, feature requests, or bug reports!
Post Reply
Bhikkhu Pesala
Top Typographer
Top Typographer
Posts: 8381
Joined: Tue Oct 29, 2002 5:28 am
Location: Seven Kings, London UK
Contact:

Chaining Context Substitutions

Post by Bhikkhu Pesala » Fri May 13, 2016 10:32 am

I guess this is a victory for the Visual OpenType Layout Feature Editor, as I don't really understand how to do this using code. What I wanted was for the lowercase r to be substituted with stylistic set 1 (ss01) after G and Y (and accented versions of these), but with stylistic set 2 after P and Q (and accented versions of these).

I created classes for PQ and GY (with the accented versions), and then added Contextual Alternates (calt) with chained context substitutions. The visual feedback on the Layout Feature Editor helped me to find a solution that worked by trial and error. I would not be surprised to learn that there's a better solution, but this does what I wanted without too much work.
Chaining Contexts.png
Chaining Contexts.png (104.34 KiB) Viewed 2283 times
My FontsReviews: MainTypeFont CreatorHelpFC12 Pro + MT9.0 @ Win10 1903 build 18362.418

Erwin Denissen
Moderator
Moderator
Posts: 8297
Joined: Fri Oct 04, 2002 12:41 am
Location: Bilthoven, The Netherlands
Contact:

Re: Chaining Context Substitutions

Post by Erwin Denissen » Fri May 13, 2016 11:22 am

And visually designing such features can be fun; especially when the expected results come alive!
Erwin Denissen
High-Logic
Proven Font Technology

Bhikkhu Pesala
Top Typographer
Top Typographer
Posts: 8381
Joined: Tue Oct 29, 2002 5:28 am
Location: Seven Kings, London UK
Contact:

Re: Chaining Context Substitutions

Post by Bhikkhu Pesala » Fri May 13, 2016 12:20 pm

The Comparison Toolbar helped me to decide which other Capitals to add to each class and the Preview Toolbar shows how the full alphabet looks, each glyph followed by the appropriate alternate lowercase r.
Preview Toolbar.png
Preview Toolbar.png (59.69 KiB) Viewed 2279 times
My FontsReviews: MainTypeFont CreatorHelpFC12 Pro + MT9.0 @ Win10 1903 build 18362.418

stormag
Posts: 40
Joined: Thu Feb 05, 2009 6:20 pm

Re: Chaining Context Substitutions

Post by stormag » Fri Jul 05, 2019 10:50 pm

It might be worth mentioning, that Chaining Context Substitutions can be used for not only the Contextual Alternates (calt), but also for Required Contextual Alternates (rclt), when Chaining Context Substitutions are effectively the only "correct" way to go, assumed by the author of the font.

Post Reply