Typophile

Robofont Alternate Characters

herld0 votes

I'm new to Robofont and opentype features. This is in fact my first foray in producing a font. I've got a base character set and and alternate characters for many of them.

At the moment I am using stylistic alternates, but am finding that when I try to use the font in Illustrator or InDesign I change a character to it's alternate and all the following characters I type are also alternates when applicable. This doesn't happen all the time, only at certain times.

Tried using feature ss01 and ss02 to define the .salt1's and .salt2's but I got the same issue regardless.

Any advice on how to properly code multiple alternate characters and not have them replace base characters when typing would be appreciated.

Thanks

CODE:

feature aalt{
feature salt;
feature liga;
} aalt;

feature salt { # my Stylistic Alternates
sub a from [a.salt];
sub A from [A.salt];
sub three from [three.salt];
sub four from [four.salt];
sub five from [five.salt];
sub B from [B.salt B.salt2];
sub D from [D.salt];
sub E from [E.salt E.salt2];
sub F from [F.salt];
sub H from [H.salt];
sub I from [I.salt];
sub R from [R.salt];
sub u from [u.salt];
sub z from [z.salt];
sub Z from [Z.salt];
sub T from [T.salt];
sub N from [N.salt];
sub ampersand from [ampersand.salt];
} salt;

feature liga { # my Ligatures
sub f f by f_f.liga;
sub f i by f_i.liga;
sub f l by f_l.liga;
sub f f i by f_f_i.liga;
sub f f y by f_f_y.liga;
} liga;

I think the problem here is your apps rather than the font. In Illustrator when you select a .salt glyph while typing it switches the "salt" feature on from that point on unless you flip it back immediately. I find that kind of behavior annoying, but that's how it's set up. So I always recommend setting all of your text first. That will put in ligatures and contextual alternates by default unless you deselect those features. Then afterwards you can either switch on salt or any other available feature to the whole thing, or use the glyph palette to change individual letters. I don't use InDesign all that much, but I suspect it has similar behavior with stylistic sets.

Captured from web.archive.org on 11 Aug 2017. view this capture