Working on my first font and cannot figure out the below so any suggestions greatly appreciated.
So I have this little connector (circled in red) to the left on the ascenders and that all works fine for my font until I have stylistic variations where there is no exit stroke to the glyph before the ascender.
I created alternative duplicates of the ascenders without this little connection on the left.
The idea is to sub the default ascenders with the alternative descenders which does not have the little connection stroke.
However when I use the coding below in the calt feature, it applies and works in the glyphs preview but does not show once test exporting and using in illustrator and indesign. I have cleared my cache, renamed and restarted to ensure no caching issues.
If anyone can help shed light on how to make this work from a coding stand point or even if I tweak my design, please share.
sub s.ss01 h' by h.alt;
sub [a.ss01 a.init.ss01] [b f h j k l p t]' by [b.alt f.alt h.alt j.alt k.alt l.alt p.alt t.alt];
sub s.init.ss01 [b f h j k l p t]' by [b.alt f.alt h.alt j.alt k.alt l.alt p.alt t.alt];
Also out of interest would love to understand why the below coding does not work, where I was going wrong?
I added the below to the ccmp feature and moved this feature to the bottom of the feature list.
And it worked…whohooo delighted. Does this sound like the right thing or practice?
lookup SSbyALT {
sub s.ss01 h’ by h.alt;
sub [a.ss01 a.init.ss01] [b f h j k l p t]’ by [b.alt f.alt h.alt j.alt k.alt l.alt p.alt t.alt];
sub s.init.ss01 [b f h j k l p t]’ by [b.alt f.alt h.alt j.alt k.alt l.alt p.alt t.alt];
You added the code to the ccmp feature? Don’t do that, keep it in calt.
And yes, the order of features is important. So if you are referencing .ss01 glyphs in your calt code, your calt feature needs to be placed after (below) your ss01 feature.