Suggestions for Alternate Numbers OTF Tag

neuroman's picture

Hi all,

My question is: what OT tag to use, when creating alternate numbers? I mean, I guess I can use Old Style Figures (although I don't know it's abbreviation, but some reading probably will help), but I'm not sure if it's correct. The font in question is the New Deco I was talking about previously, and it will consist of filled glyphs as well as stenciled ones, that's why I need to define the alternate numbers. Any help will be appreciated and I really hope you guys understand what I mean.

Thank you.

Sebastian Nagel's picture

If the alternatives are *not* Oldstyle Figures, Tabular Figures, ... but merely stylistic variations of the original figures, I would assign them to a stylistic set (SS01 to SS20).

If you assign them to a tag a user would expect something different, you "dissappoint" him if he chooses the feature and does not get what he wanted, but something different you placed there due to lack of an other feature which could be more fitting.

neuroman's picture

Thank you for your help. The problem that occurs is that I named those alternate numbers as follows:

one.ss01
two.ss01
three.ss01

and so on

the ss01 feature looks like this:

feature ss01{
sub one by one.ss01;
sub two by two.ss01;
sub three by three.ss01;
sub four by four.ss01;
sub five by five.ss01;
sub six by six.ss01;
sub seven by seven.ss01;
sub eight by eight.ss01;
sub nine by nine.ss01;
} ss01;

But I keep on getting this message:

ERROR: There was a problem while compiling OpenType font. Final .otf font is not saved. Please, check OpenType features definition for errors

What's wrong?

Sebastian Nagel's picture

It *might* be that in the first line a space is missing:

feature ss01{

maybe should be

feature ss01 {

Does this solve the problem?

twardoch's picture

No, it's not a space problem. Save your features from the OpenType panel into a .fea file, open it in the text editor, clean up any empty lines, and open it back in the OpenType panel.

Also, I'd recommend doing it as follows:

feature ss01 {
lookup ss01digits {
sub [one two three four five six seven eight nine zero] by [one.ss01 two.ss01 three.ss01 four.ss01 five.ss01 six.ss01 seven.ss01 eight.ss01 nine.ss01 zero.ss01];
} ss01digits;
} ss01;

feature salt {
lookup ss01digits;
} salt;

In other words, if your font has a ss01 feature, it should also have a salt feature because different apps expose different features (e.g. InDesign has ss01 but no salt while Illustrator has no ss01 but it has salt).

Adam

Syndicate content Syndicate content