Strange behaviour when selecting ot alternates.

bvfonts
27.Sep.2008 12.23pm
bvfonts's picture

I’m finishing up an opentype script font that has many alternates. When I select from the ot palette in adobe illustrator, for instance /r.alt/r.alt/ and then select something different like r.alt02 then instead of getting: /r.alt/r.alt/r.alt02 I get: /r.alt02/r.alt02/r.alt02 so it changes all alts before it. Another way might be /p.end/p.end and the selecting q.swsh instead of /p.end/p.end/q.swsh I get /p.swsh/p.swsh/q.swsh

I’m guessing that I set up the aalt feature wrong?

sub r from [r r.alt r.alt02 r.start r.end r.startswsh r.endswsh];

Is this not correct? - Jess



Stephen Rapp
28.Sep.2008 6.46am
Stephen Rapp's picture

Do you have some calt feature thats active at the same time?


bvfonts
28.Sep.2008 9.25am
bvfonts's picture

When I turn calts off in illustrator it still happens and when I turn all features off it happens. aalts is the only feature that I think could be causing this, there’s no way to turn that off in illustrator. - Jess


bvfonts
28.Sep.2008 12.42pm
bvfonts's picture

I just did a test where I removed r and s from the aalt feature to see how those letters would respond and when pecking out the sequence from the pallete: r.startswsh r.startswsh s.startswsh s.startswsh it stays exactly as is. Then I try t.startswsh t.startswsh u.startswsh and it instantly changes to t.alt02 t.alt02 u.startswsh. Also, I removed all features but the aalt feature and the problem still remains.


Stephen Rapp
28.Sep.2008 4.19pm
Stephen Rapp's picture

If you are already using these glyphs via calt or some other feature, you probably shouldn’t be listing them separately again in the aalt feature. Also... alt should be on top when you compile.

Here is a sample:
feature aalt {
feature clig;
feature dlig;
feature liga;
feature calt;
feature cswh;
feature swsh;
feature ss01;
feature ss02;
feature ss03;
feature ss04;
feature ss05;
feature ss06;
feature ss07;
feature ornm;
feature tnum;
feature frac;
} aalt;


bvfonts
28.Sep.2008 5.41pm
bvfonts's picture

Then how would you make it possible to select from the opentype pallete? I’m trying to make it possible for the option to choose. It still doesn’t explain why this is happening with only the aalt feature all by itself. Waaaah -Jess


k.l.
29.Sep.2008 12.40am
k.l.'s picture

Is it the same behavior in InDesign?

Not mentioning by/from substitution in ’aalt’ does not mean that alternate glyphs are not available in the glyph palette. It only means that alternate glyphs are not listed as alternates in a glyph’s popup showing alternates.


Stephen Rapp
29.Sep.2008 3.29am
Stephen Rapp's picture

Do you mean the glyph palette in Illustrator?
When I do my features as above with the aalt feature listed 1st in the feature code I can access any character from the glyph palette and most can be adjusted easily from the opentype one. The aalt feature should give you little arrows in the glyph palette by each glyph that has alternates and clicking the arrow produces a submenu of those alternates. The aalt feature shouldn’t be in the opentype menu at all. There is a salt feature for Illustrator there, but that’s different.
What features do you have in this font?


bvfonts
29.Sep.2008 9.21am
bvfonts's picture

k.l, I don’t have InDesign so I can’t say.

Stephen, Yes, the glyph palette in Illustrator. Exactly, it’s not in the menu it works just like your explaining.

The problem happens when two or more alts are selected together for instance: I spell Betty and highlight the two t’s and select from the pop out glyph menu the extra swashy t_t. That works so I decide to change the y to the extra swashy ending y from the pop out menu and when I do that the y is fine but the extra swashy t_t behind it turns into t.alt So it’s now Bety. Since I have removed all other features but the aalt from the font, the only explanation can be that the aalt feature is doing this.

I’ve created many opentype fonts with the aalt feature but usually with just one or two alternates to choose from. This font I’m working on, one glyph can have up to 5 alternates.

feature aalt {
sub A from [A.alt A.alt02];
sub B from [B.alt];
sub K from [K.swsh];
sub L from [L.swsh];
sub M from [M.alt M.alt02];
sub N from [N.alt N.alt02];
sub Q from [Q.swsh];
sub R from [R.swsh];
sub a from [a.startswsh a.endswsh];
sub b from [b.startswsh b.endswsh];
sub c from [c.startswsh c.endswsh];
sub d from [d.startswsh d.endswsh];
sub e from [e.startswsh e.endswsh];
sub f from [f.startswsh f.endswsh];
sub g from [g.alt g.startswsh g.endswsh];
sub h from [h.startswsh h.endswsh];
sub i from [i.startswsh i.endswsh];
sub j from [j.startswsh j.endswsh];
sub k from [k.alt k.startswsh k.endswsh];
sub l from [l.start l.alt_end l.startswsh l.endswsh];
sub m from [m.startswsh m.endswsh];
sub n from [n.startswsh n.endswsh];
sub o from [o.alt o.startswsh o.endswsh];
sub p from [p.startswsh p.endswsh];
sub q from [q.startswsh q.endswsh];
sub r from [r.alt r.alt02 r.start r.startswsh r.endswsh];
sub s from [s.startswsh s.endswsh];
sub t from [t.alt t_t.alt t_t t.startswsh t.endswsh];
sub u from [u.startswsh u.endswsh];
sub v from [v.alt v.alt_startswsh v.startswsh v.endswsh];
sub w from [w.alt w.alt_startswsh w.startswsh w.endswsh];
sub x from [x.startswsh x.endswsh];
sub y from [y.alt y.alt02 y.startswsh y.endswsh];
sub z from [z.alt z.startswsh z.endswsh];
} aalt;

The reason I didn’t set up the swsh feature for the lowercase letters is because it’s just too much, it’s better if it’s used sparingly and selectively.


k.l.
29.Sep.2008 9.42am
k.l.'s picture

sub t from [t.alt t_t.alt t_t t.startswsh t.endswsh];

Given this, the behavior is not a surprise: You consider t_t and t_t.alt as alternates for t — which they obviously are not. Better do this:

sub t from [t.alt t.startswsh t.endswsh];
sub t_t from [t_t.alt];


bvfonts
29.Sep.2008 3.41pm
bvfonts's picture

Thanks k.l. That will help with those alternates and I just tried it with the sub r from [r.alt r.alt02] in the same location and it caused the same collapse. So I did sub r.alt from [r.alt02]; and that fixes the problem for that, although the fact that it is a problem is puzzling. Having the swsh feature listed makes more sense. Maybe if I move the start and end swashes to a stylistic set it will fix that problem too. - Jess