OT Alternative Characters

Mike Jarboe
15.Jan.2008 9.27pm
Mike Jarboe's picture

Having a bit of trouble with alt characters… everything works fine in the Fontlab OpenType features window using

feature aalt {
sub O by Oalt;
sub Oacute by Oacutealt;
sub Ograve by Ogravealt;
sub Ocircumflex by Ocircumflexalt;
sub Odieresis by Odieresisalt;
sub Otilde by Otildealt;
sub Oslash by Oslashalt;
sub o by oalt;
sub oacute by oacutealt;
sub ograve by ogravealt;
sub ocircumflex by ocircumflexalt;
sub odieresis by odieresisalt;
sub otilde by otildealt;
sub oslash by oslashalt;
} aalt;

But I noticed there’s no way to access ’aalt’ in Illustrator CS3… so I wanted to add salt, ss01 and maybe titl as well in the OT features for multi-application access.

I found this thread containing a suggestion:

Whenever you define any features in your font that produce 1:1 substitutions by some alternates (salt, ss01-ss20, swsh, hist, smcp, c2sc etc.), you should link these features to aalt in the following way:

feature aalt {

feature salt;

feature ss01;

feature ss02;

feature hist;

feature smcp;

feature c2sc;

} aalt;

But not sure how to implement and ’link’ these… does it go above or below the ’aalt’ feature code?

And does aalt on it’s own just not show up in some applications such as Illustrator?

Thanks



Miguel Sousa
16.Jan.2008 2.42am
Miguel Sousa's picture

Mike, ’aalt’ is (indirectly) accessed via the Glyph Palette.
But anyway, I think this is what you want:

feature aalt {
feature salt;
feature ss01;
feature titl;
} aalt;

feature salt {
lookup OALT {
sub O by Oalt;
sub Oacute by Oacutealt;
sub Ograve by Ogravealt;
sub Ocircumflex by Ocircumflexalt;
sub Odieresis by Odieresisalt;
sub Otilde by Otildealt;
sub Oslash by Oslashalt;
sub o by oalt;
sub oacute by oacutealt;
sub ograve by ogravealt;
sub ocircumflex by ocircumflexalt;
sub odieresis by odieresisalt;
sub otilde by otildealt;
sub oslash by oslashalt;
}OALT;
} salt;

feature ss01 {
lookup OALT;
} ss01;

feature titl {
lookup OALT;
} titl;

And while you’re at it, the correct glyph names for your alternates is O.alt , Oacute.alt , etc. (notice the dot before ’alt’)


Mike Jarboe
16.Jan.2008 8.31pm
Mike Jarboe's picture

Okay cool thats working now I thought my output error had to do with the above lookup code but it was within a font that I had removed all of the kerning data but left the kern feature in… as soon as I deleted the kern feature and compiled all was fine… happens to be a font that i’m redoing the kerning on…


Mike Jarboe
16.Jan.2008 8.34pm
Mike Jarboe's picture

Miguel, thanks I’ll try that and correct the alt adding the dot before.

Out of curiosity does not having the dot before alt compromise anything?

Appreciate your response!

Mike


Miguel Sousa
17.Jan.2008 11.04am
Miguel Sousa's picture

> Out of curiosity does not having the dot before alt compromise anything?

Where and why glyph names are used