Ligature only when alone

Hey! I did a font with an “he” ligature and I only want it to appear when “he” is standing as a single word. How is that possible?

Thanks!

From the Glyphs excellent tutorials, this:
https://glyphsapp.com/tutorials/features-part-1-simple-substitutions

The ligature should be substituted from an .init and a .fina shape. You might need some more code to make sure it doesn’t happen before a glyph that doesn’t connect to the previous glyph. You need an ignore statement for this.

After you read the tutorial George posted above, follow up with this one:
https://glyphsapp.com/tutorials/features-part-4-positional-alternates

Look for the code for ‘isolated’ glyphs.