Discretionary Ligatures

Discetionary ligatures in display font

Forums: 

Hi all

I am designing a display typeface in Fontlab. It has substitute ligatures for pretty much every letter combination (like A_A, A_B, A_C...etc). I want to put them all as discretionary ligatures. The code at the moment looks like this:

feature dlig {
sub A A by A_A;
sub A B by A_B;
sub A C by A_C;
sub A D by A_D;
sub A E by A_E;
sub A F by A_F;
sub A G by A_G;
sub A H by A_H;
sub A I by A_I;
sub A J by A_J;
sub A K by A_K;
sub A L by A_L;
sub A M by A_M;
sub A N by A_N;
sub A O by A_O;
sub A P by A_P;
sub A R by A_R;
sub A S by A_S;
sub A T E by A_T_I;
sub A T I by A_T_E;
sub A T by A_T;
sub A U by A_U;
sub A V by A_V;
sub A W by A_W;
sub A X by A_X;
sub A Y by A_Y;
sub A Z by A_Z;