Problems adding Stylistic Alternates
Problems adding Stylistic Alternates
Hello everyone! I am new to font making and fontcreator. I typically teach myself how to do just about everything computer related through trail and error. But I have been having problems figuring out what I am doing wrong now.
So I've been working on this font, it is a handwritten style script font. I've been working on this for over a week, its been going well, the font is looking great. I have attempted to add stylistic alternates for each lowercase character, but I think I must be doing something wrong because when I export and install the font, and open the glyph panel in Illustrator, all of my alternates are squares.
I've tried to look up my issue but can not find anything. It is probably something simple that I just did completely wrong.
Thanks in advance for any help!
So I've been working on this font, it is a handwritten style script font. I've been working on this for over a week, its been going well, the font is looking great. I have attempted to add stylistic alternates for each lowercase character, but I think I must be doing something wrong because when I export and install the font, and open the glyph panel in Illustrator, all of my alternates are squares.
I've tried to look up my issue but can not find anything. It is probably something simple that I just did completely wrong.
Thanks in advance for any help!
-
- Top Typographer
- Posts: 9878
- Joined: Tue Oct 29, 2002 5:28 am
- Location: Seven Kings, London UK
- Contact:
Re: Problems adding Stylistic Alternates
If you copy and paste your script for the Stylistic Alternates here, someone may be able to spot what is wrong. Mine are like this with five alternates for each glyph, the first being the same as the input (I only listed one sub for the sake of simplicity).
Code: Select all
feature StylisticAlternates salt {
lookup StylisticAlternates;
} lookup StylisticAlternates {
sub asterisk -> [asterisk asteriskmath uni2051 uni2042 uni203B];
}
Re: Problems adding Stylistic Alternates
Thanks for your quick reply, and for pointing me toward the script. Would that make the alternates turn into squares if the scripting was wrong?
I imagine I likely do not have it written right, I have tried to do it several different ways. Mostly by looking at other fonts script to see how they did it. This is my latest, it is not showing any errors when I validate. But the alternate characters are still not showing after exporting and installing. In Photoshop, it recognizes that there are stylistic alternates in the character panel, but when I try to apply it to a letter it changes to a square.
I imagine I likely do not have it written right, I have tried to do it several different ways. Mostly by looking at other fonts script to see how they did it. This is my latest, it is not showing any errors when I validate. But the alternate characters are still not showing after exporting and installing. In Photoshop, it recognizes that there are stylistic alternates in the character panel, but when I try to apply it to a letter it changes to a square.
Code: Select all
script latn {
# Latin
feature StylisticAlternates1;
}
feature StylisticAlternates1 salt {
# Stylistic Alternates
lookup Lookup1;
}
lookup Lookup1 {
# Referenced by feature "StylisticAlternates1"
sub a -> [a.alt01];
sub b -> [b.alt01];
sub c -> [c.alt01];
sub d -> [d.alt01 d.alt02];
sub e -> [e.alt01];
sub f -> [f.alt01];
sub g -> [g.alt01];
sub h -> [h.alt01];
sub i -> [i.alt01];
sub j -> [j.alt01];
sub k -> [k.alt01];
sub l -> [l.alt01 l.alt02];
sub m -> [m.alt01];
sub n -> [n.alt01];
sub o -> [o.alt01];
sub p -> [p.alt01];
sub q -> [q.alt01];
sub r -> [r.alt01 r.alt02];
sub s -> [s.alt01 s.alt02];
sub t -> [t.alt01 t.alt02];
sub u -> [u.alt01];
sub v -> [v.alt01];
sub w -> [w.alt01];
sub x -> [x.alt01 x.alt02];
sub y -> [y.alt01];
sub z -> [z.alt01];
}
Re: Problems adding Stylistic Alternates
This is my latest draft. I don't know if I am doing this scripting right, as I have only been able to reference script from other fonts. Photoshop recognizes that there is stylistic alternatives in the character panel, but when I try to apply it to a letter I get a square.
I tried adding the input as the first, like in your script, now in Photoshop when I click on the stylistic alternatives button, instead of a square, it just does not change the letter at all.
Hopefully someone can help, I've hit a roadblock. Thanks again!
Code: Select all
script latn {
# Latin
feature StylisticAlternates1;
}
feature StylisticAlternates1 salt {
# Stylistic Alternates
lookup Lookup1;
}
lookup Lookup1 {
# Referenced by feature "StylisticAlternates1"
sub a -> [a.alt01];
sub b -> [b.alt01];
sub c -> [c.alt01];
sub d -> [d.alt01 d.alt02];
sub e -> [e.alt01];
sub f -> [f.alt01];
sub g -> [g.alt01];
sub h -> [h.alt01];
sub i -> [i.alt01];
sub j -> [j.alt01];
sub k -> [k.alt01];
sub l -> [l.alt01 l.alt02];
sub m -> [m.alt01];
sub n -> [n.alt01];
sub o -> [o.alt01];
sub p -> [p.alt01];
sub q -> [q.alt01];
sub r -> [r.alt01 r.alt02];
sub s -> [s.alt01 s.alt02];
sub t -> [t.alt01 t.alt02];
sub u -> [u.alt01];
sub v -> [v.alt01];
sub w -> [w.alt01];
sub x -> [x.alt01 x.alt02];
sub y -> [y.alt01];
sub z -> [z.alt01];
}
Code: Select all
script latn {
# Latin
feature StylisticAlternates1;
}
feature StylisticAlternates1 salt {
# Stylistic Alternates
lookup Lookup1;
}
lookup Lookup1 {
# Referenced by feature "StylisticAlternates1"
sub a -> [a a.alt01];
sub b -> [b b.alt01];
sub c -> [c c.alt01];
sub d -> [d d.alt01 d.alt02];
sub e -> [e e.alt01];
sub f -> [f f.alt01];
sub g -> [g g.alt01];
sub h -> [h h.alt01];
sub i -> [i i.alt01];
sub j -> [j j.alt01];
sub k -> [k k.alt01];
sub l -> [l l.alt01 l.alt02];
sub m -> [m m.alt01];
sub n -> [n n.alt01];
sub o -> [o o.alt01];
sub p -> [p p.alt01];
sub q -> [q q.alt01];
sub r -> [r r.alt01 r.alt02];
sub s -> [s s.alt01 s.alt02];
sub t -> [t t.alt01 t.alt02];
sub u -> [u u.alt01];
sub v -> [v v.alt01];
sub w -> [w w.alt01];
sub x -> [x x.alt01 x.alt02];
sub y -> [y y.alt01];
sub z -> [z z.alt01];
}
-
- Top Typographer
- Posts: 9878
- Joined: Tue Oct 29, 2002 5:28 am
- Location: Seven Kings, London UK
- Contact:
Re: Problems adding Stylistic Alternates
If a letter is changing to a square that usually means that the glyph is not defined, so what you see is the .notdef glyph in your font.
I think the problem may be that you have mixed “one to one” and “one to many” substitutions, i.e. a -> a.alt01 but d -> d.alt01 d.alt02.
In PagePlus, when I enable Stylistic Alternates, I expect to get no change until I select one of the additional sets. The original text stream is for SS01:
When I select the second alternate set I get this:
And when I select the third alternate set I get this:
I think the problem may be that you have mixed “one to one” and “one to many” substitutions, i.e. a -> a.alt01 but d -> d.alt01 d.alt02.
In PagePlus, when I enable Stylistic Alternates, I expect to get no change until I select one of the additional sets. The original text stream is for SS01:
When I select the second alternate set I get this:
And when I select the third alternate set I get this:
-
- Moderator
- Posts: 11160
- Joined: Fri Oct 04, 2002 12:41 am
- Location: Bilthoven, The Netherlands
- Contact:
Re: Problems adding Stylistic Alternates
It can also happen if you use a trial or illegal copy of our software. Did you buy a license?
Re: Problems adding Stylistic Alternates
Thanks Bhikkhu, I will go through and try to clean up the script and see if that works.
I messed around a little more last night and was able to actually see the alternates in the glyphs panel in Illustrator, but I still can not get them to work when I press the button in the character panel in Photoshop. Not sure what I did different that worked for Illustrator.
Erwin, yes I have a licensed version.
I messed around a little more last night and was able to actually see the alternates in the glyphs panel in Illustrator, but I still can not get them to work when I press the button in the character panel in Photoshop. Not sure what I did different that worked for Illustrator.
Erwin, yes I have a licensed version.
-
- Top Typographer
- Posts: 9878
- Joined: Tue Oct 29, 2002 5:28 am
- Location: Seven Kings, London UK
- Contact:
Re: Problems adding Stylistic Alternates
I am not convinced that my answer is correct. There might be some other reason. Do check that the glyph names are correct. It's quite easy to add a space in error, eg. "a.alt01 " instead of "a.alt01"
-
- Moderator
- Posts: 11160
- Joined: Fri Oct 04, 2002 12:41 am
- Location: Bilthoven, The Netherlands
- Contact:
Re: Problems adding Stylistic Alternates
Please send the font project file to us through the ticket system, so we can look into the issue.
Re: Problems adding Stylistic Alternates
Bhikkhu, I went back and started the script from scratch. I referenced the script used by Mathilde.otf to get it started. I separated the two alternates as you suggested, made the second set into swash because they actually are a swash style. It works perfectly now, no more problems. I must have been scripting it wrong to begin with, I'm not very good with script.
I appreciate your help!
I appreciate your help!
-
- Top Typographer
- Posts: 9878
- Joined: Tue Oct 29, 2002 5:28 am
- Location: Seven Kings, London UK
- Contact:
Re: Problems adding Stylistic Alternates
Glad you got it sorted. I am still learning this scripting stuff too. There is a lot to learn.
Microsoft OpenType Tag Registry
Microsoft OpenType Tag Registry
-
- Moderator
- Posts: 11160
- Joined: Fri Oct 04, 2002 12:41 am
- Location: Bilthoven, The Netherlands
- Contact:
Re: Problems adding Stylistic Alternates
I'm glad you sorted it out, but I would still like to make sure there are no bugs in FontCreator that caused the problem. So it would be great if you send the problematic font project to us.