CALT not applying on export

Hi,

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?

sub a.ss01 @DefaultAlt' by @Alt;

Thanks so much,

Jennifer

Can you try the font in FontGoggles? It shows the glyphs as they are after all features are applied.

And make sure to read this: Testing your fonts in Adobe apps | Glyphs

Hi Georg,

Thanks for replying.

I had previously followed and implemented the adobe fonts folder document and double checked it again.

I installed fontgoggles and checked it there you like advised and the calt code is not applying for the alt glyphs. Any thoughts on what to do next?

Thanks,

Jen

Can you send me the .glyphs file ?

Hi Georg,

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];

} SSbyALT;

Thanks,

Jen

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.

Hi Sebastian,

Thank you for pointing that out.

I moved the coding into the calt feature and moved the calt feature below the ss01. This then impacted by init and fina glyphs on my liga’s.

Reordered again to have my liga feature below my calt and that resolved my ligature init & fina’s.

So I’m hoping that captured all my issues which it looks like it did plus following the right practice for coding.

Thanks again,

Jen

Hi Sebastian,

Thank you for pointing that out.

I moved the coding into the calt feature and moved the calt feature below the ss01. This then impacted by init and fina glyphs on my liga’s.

Reordered again to have my liga feature below my calt and that resolved my ligature init & fina’s.

So I’m hoping that captured all my issues which it looks like it did plus following the right practice for coding.

Thanks again,

Jen