How to program "Alternates for Selection" for the Indesign Glyph Palette

Wiewauters's picture

Hello,

I'm in the process of digitising handwriting into a font with 3 alternates for each glyph. I already have the opentype coding for the "randomnisation" coverd. The problem now is, that my glyphs don't get combined in the Indesign glyph palette, as is automatically the case, when I design smallcaps. Is this because the opentype feature is programmed as contextual alternates? Or is this because of a different reason?

Any help appreciated,
Dries

dezcom's picture

Do you have it listed in your {aalt} feature?

ChrisL

Wiewauters's picture

Currently it's a Calt feature, I'll try it now as a Aalt feature.

Wiewauters's picture

Doesn't work, it disturbs the look-up feature of my randomnisation.

Missing glyph: A
Missing glyph: A.alt1
Missing glyph: A.alt2
Missing glyph: A.alt3
Missing glyph: space.alt1
Missing glyph: space.alt2
Missing glyph: space.alt3
[ERROR] "lookup" use not allowed in 'aalt' feature [C:/Documents and Settings/Gebruiker/Mijn documenten/FontLab/Studio5/fontlab.fea 50]
[ERROR] "lookup" use not allowed in 'aalt' feature [C:/Documents and Settings/Gebruiker/Mijn documenten/FontLab/Studio5/fontlab.fea 56]
[ERROR] "lookup" use not allowed in 'aalt' feature [C:/Documents and Settings/Gebruiker/Mijn documenten/FontLab/Studio5/fontlab.fea 57]
[ERROR] "lookup" use not allowed in 'aalt' feature [C:/Documents and Settings/Gebruiker/Mijn documenten/FontLab/Studio5/fontlab.fea 58]
[ERROR] "lookup" use not allowed in 'aalt' feature [C:/Documents and Settings/Gebruiker/Mijn documenten/FontLab/Studio5/fontlab.fea 59]
[ERROR] "lookup" use not allowed in 'aalt' feature [C:/Documents and Settings/Gebruiker/Mijn documenten/FontLab/Studio5/fontlab.fea 60]
[ERROR] "lookup" use not allowed in 'aalt' feature [C:/Documents and Settings/Gebruiker/Mijn documenten/FontLab/Studio5/fontlab.fea 61]
[ERROR] "lookup" use not allowed in 'aalt' feature [C:/Documents and Settings/Gebruiker/Mijn documenten/FontLab/Studio5/fontlab.fea 62]
[ERROR] "lookup" use not allowed in 'aalt' feature [C:/Documents and Settings/Gebruiker/Mijn documenten/FontLab/Studio5/fontlab.fea 63]
[ERROR] "lookup" use not allowed in 'aalt' feature [C:/Documents and Settings/Gebruiker/Mijn documenten/FontLab/Studio5/fontlab.fea 64]
[ERROR] "lookup" use not allowed in 'aalt' feature [C:/Documents and Settings/Gebruiker/Mijn documenten/FontLab/Studio5/fontlab.fea 65]
[ERROR] "lookup" use not allowed in 'aalt' feature [C:/Documents and Settings/Gebruiker/Mijn documenten/FontLab/Studio5/fontlab.fea 66]
[ERROR] "lookup" use not allowed in 'aalt' feature [C:/Documents and Settings/Gebruiker/Mijn documenten/FontLab/Studio5/fontlab.fea 67]
[FATAL] aborting because of errors

I've turned it back to calt now.

dezcom's picture

You just list calt in your aalt features, you don't replace your calt with the aalt.

ChrisL

k.l.'s picture

What Chris Lozos means is that, in addition to the 'calt' feature which you already have, you need to create an 'aalt' feature looking like this:

    feature aalt {
       feature calt;
       feature onum;
       feature lnum;
       feature tnum;
       feature pnum;
       # and other substitution feature ...
    } aalt;

Upon compiling features, AFDKO will check all features listed in the 'aalt' feature and create substitutions like

    # single alternate ...
    sub a from [a.alt.1 a.alt.2 a.alt.3];
    # multiple alternates ...
    sub b by b.alt.1;

so that InDesign's Glyph Palette can show a.alt.1, a.alt.2 and a.alt.3 as alternates to a. If you find that some alternates are missing from the Glyph Palette, you may add substitutions like the above one manually to the 'aalt' feature. I think they should follow the feature aalt; etc statements.

There's one thing to keep in mind. You can add, but not omit, the presentation of certain alternates in InDesign's Glyph Palette!
Even if you omit statements like feature calt; and write all alternate substitutions manually (with the 'by' or 'from' syntax), InDesign is clever enough to analyze all your other features to find alternates by itself. There does not seem a way around this. So InDesign may show more alternates than you would like it do do.
(Advantage: InDesign is capable to show alternate glyphs even with fonts that lack an 'aalt' feature. Disadvantage: The type designer does not have full control over alternates shown in the Glyph Palette. -- My suggestion would be that InDesign checks whether an 'aalt' feature is present, if yes then it would switch off its automatism, if no then switch it on.)

[Edit: Didn't see your last post while writing mine ...]

Karsten

Wiewauters's picture

Chris and Karsten, thank you very much for the replies.
Now it works like a charm.

Dries

Syndicate content Syndicate content