Typophile

Opentype features, Its can be combined?

John Vargas Beltrán

Hello. I hope find you well!

I have a dude about programming some glyphs with OT features, for various alternates of any letter. For example, I have a J, it is the normal or simple version. Then, this J can be down in its trace of baseline, thinking in a J swash. However, I programmed it J swash using feature with this code:

feature swsh {
sub J by J.swash ;
} swsh;

Now, I have a new version for J with a extended curve to left, thinking for a initial version, however, it was programmed with:

feature init {
sub J by J.ini ;
} init;

For one third version of this J, that can be swashed and extended to left for only initial versions, how can I program it mixing both features, initial and swash? Can it be possible?

My English is not very fluently, I am Spanish-speaker, I hope you can understand me.

Thank you.

Vargas1974

If the init features comes after the swsh feature, wouldn't it work to simply add
sub J.swash by J.swash_ini;
(or whatever you've named the new character)?

If it were me, I would probably put the descending /J/ into a "stylistic alternate" feature (salt or ss01) rather than swsh, and I'd put the initial forms in swsh instead of (or in addition to) init.

Thanks.

Captured from web.archive.org on 17 Mar 2015. view this capture