Hello typophiles:
I'm writing the opentype code of a font, starting with ligatures I have some doubts about encoded ligatures and not encoded ones. In a previous thread http://typophile.com/node/35174 Miguel Sousa suggested to duplicate the encoded characters fi (FB01) and fl (FB02) for the liga feature and rename the duplicates as f_i, f_l. Then in small caps generate the glyphs fi.sc and fl.sc to replace fi and fl. And the OT code should look like this:
feature smcp {
sub fi by fi.sc;
sub fl by fl.sc;
} smcp;
feature liga {
sub f i by f_i;
sub f l by f_l;
} liga;
My question is what about the other encoded ligatures? I dont know what is better, unencode them or keep the encoding and duplicate them as suggested. I also have these characters: ff (FB00), ffi (FB03), ffl (FB04), s_t (FB06) and longs_t (FB05). I have decided to duplicated them but i don't know if it is the right decision, here are my glyphs and my code. Could you advice me?
Encoded: fi(FB01), fl (FB02), ff (FB00), ffi (FB03), ffl (FB04), st (FB06) and longs_t (FB05)
Duplicated: f_f, f_f_i, f_f_l, s_t, longs_t.hlig
Generated for smcp: fi. sc, fl.sc, ff.sc, ffi.sc, ffl.sc, st.sc
feature smcp {
sub ffi by ffi.sc;
sub ffl by ffl.sc
sub ff by ff.sc;
sub fi by fi.sc;
sub fl by fl.sc;
sub st by st.sc;
} smcp;
feature liga {
sub f f i by f_f_i;
sub f i by f_i;
sub f l by f_l;
} liga;
feature dlig {
sub s t by s_t;
} dlig;
hlig {
sub ſ t by longs_t.hlig;
} hlig;
As for the uppercase forms, should I generate especial glyphs to substitute the enconded ligatures when the user changes the text from lowercase to all caps? Thanks in advance.