writing code for alternate glyphs

Hi everyone. I'm making my first font and it has a ton of ligatures. I have six versions of some ligatures. Now I'm beginning the proces of getting them to work with code, though I've never written code I'm learning it as I go, with this font.

My question is about the difference between stylistic alternates en stylistic sets. What is the difference exactly??
The manual says this about stylistic alternates... or contextual alternates

Alternate Substitution
Alternate substitution replaces a glyph with one of the glyphs in a predefined
list of alternatives. The application that uses the font is expected to
decide which glyph to choose. A good example of this lookup is to provide
several versions of some glyph, like the ampersand. Another application is
the selection of several different forms of ornaments.

Does this mean that with stylistic alternates the program you use chooses a random glyph from the glyphs you created?

I want the user to be able to choose an alternate glyph...

Theunis de Jong's picture

Does this mean that with stylistic alternates the program you use chooses a random glyph from the glyphs you created?

Yes, it's precisely for that -- leave it to the user to pick any single character. (Ed. Well, the software doesn't choose, it selects the default glyph; but it allows the user to replace it with any other one.)

Stylistic sets can be created to automatically select one consistent glyph design for a number of alternate characters. For example, if you have a few different paragraph (pilcrow) designs, and different section signs to match the style of each pilcrow, you can create a stylistic set for each combination, so the user doesn't have to pick-and-match combinations by himself.

Symn's picture

thanx for your reply, it is a little bit clearer now. On a follow up question that has nothing to do with this (feels kind of a waste of space to open a new topic for this)

Can anyone tell me why my glyphs look so small in the glyph panel in InDesign? (they are the right size when you write text)

oldnick's picture

Can anyone tell me why my glyphs look so small in the glyph panel in InDesign? (they are the right size when you write text)

check your bbox...

Symn's picture

by that you mean.. bounding box?? The little icon bottom right of the glyph panel?
Not working, symbols should be as big as any other font shouldnt they? Could it possibly be because there is one glyph that is bigger then 2 glyph windows?

edit: Yes it was!!

Syndicate content Syndicate content