contextual alternates

Hi there,

I've created a font that has 3 character variations using calt (which works fine) and includes a set of 3 swash variations per character as well. The issue I'm having is I also want to include start and end swashes for select letters (a, e, i, o, r). I set up my code as such and it works perfectly fine in FontLab when I test it but when I try in Illustrator, only the start_swsh works. The end of the word remains normal.

feature swsh {
ignore sub @ALL @letter1' @ALL;
ignore sub @ALL @letter2' @ALL;
ignore sub @ALL @letter3' @ALL;
sub @letter1' @ALL by @start_swsh;
sub @letter2' @ALL by @start_swsh;
sub @letter3' @ALL by @start_swsh;
sub @ALL @letter1' by @end_swsh1;
sub @ALL @letter2' by @end_swsh1;
sub @ALL @letter3' by @end_swsh1;
sub @swsh1' by @swsh2;

Hello

I wonder if anyone can help

I am trying to substitute the normal 'i' letter to the dotlessi in specific combination of letters, especially Vi and Yi. For example when someone types Vi, I want the i to change to the dotlessi.

I know about contextual alts but this only changes the first letter.
sub a' [ a b c d f g h i j k l m n o p q r t u v w y ] by uniE002;

Is there any coding I should use to achieve this?

Hello,

I'm currently working on a type project that requires some opentype knowledge that I lack.

I would like to create a font that use contextual alternates to swap glyphs based on there occurence in the text.

Therefore the font would have to "count" the number of time a letter appear in the text and switch it if need be.
For exemple I'd like to be able to set an opentype feature that would swap the 25th "a" and 3rd "b" of the text with an alternative "a'' and "b". I'd like the font to be able to evolve depending on the content used and select additional letters based on the number of time that letter was used.

Is there a way to do something like that ?

I'm fairly new to font creation and open type features but I have some basic knowledge of Glyphs and Robotfont.

Syndicate content Syndicate content