I’m trying to make a single swash for the beginning of a word and another one for the end of a word. Also I want that two swashes to be compatible with all letters.
My second problem is about the font weight. The font is variable. When I test it in Illustrator, it works for all glyphs but not working for the glyphs that I write above (sws_str, sws_str.alt, etc…)
I’m not sure that it has a solution.
Any help will be great.
About the second problem. I guessed that it would be something about Unicodes and put some values from the Unicode section at the bottom-left corner. It didn’t work.
I don’t know how to do that. Is there any tutorial or a source that I can read?
Depending on how you plan to enable those swashes.
You could add a contextual one to many substitution to automatically add those swash glyphs (that will work in most places, the most important that is not working is the Default Composer in Indesign, the World Ready composer is fine).
And instead of all those alternates, you could position the swash with mark positioning and use some contextual spacing to give it the space it needs.
Something like this:
standalone lookup swashIn_subs {
sub A by A swashIn;
sub V by V swashIn;
} swashIn_subs;
lookup swashIn {
ignore sub @AllLetters @AllLetters';
sub @AllLetters' lookup swashIn_subs @AllLetters ;
} swashIn;
lookup swashInPos {
pos [A V] <600 0 600 0> swashIn;
} swashInPos;