Double-story a to one-story when italic

What is the best way to implement alternation of a double-story a to one-story when switch to italics?

Heya!
For OTF instances add the ‘Rename Glyph’ custom parameter to you italic instances. Double click and enter: a.ss01 (or whatever the name of your single store a is) =a

{
customParameters = (
{
name = "Rename Glyphs";
value = (
"a.ss01=a"
);
}
);
}

For variable fonts add the ‘rlig’ feature to you font.

# ifdef VARIABLE
condition 0 < ital < 100;
sub a by a.ss01;
# endif

The custom parameter and the rlig feature might clash at export, so last but not least add the ‘remove feature’ custom parameter to all your non-variable instances

{
customParameters = (
{
name = "Remove Features";
value = (
rlig
);
}
);
}

You might also have to add all the characters that use ‘a’ as a component to the custom parameter / rlig list

Hope this helps :^)

3 Likes

See the Switching Shapes tutorial.

1 Like