Opentype scripts, swash
Hi Guys,
I have a question about Fontlab and Opentype-features:
I want to make a OpenType-script for swash characters. One script for
beginning characters, and one for the last.
But whatever I do, not only the beginning character are changed, but also
other Uppercase-letters inside the text-string....
What's going wrong??
Best regards and thanks for your help,
Morten




27.Jun.2007 2.31am
Show us your feature code.
Ralf
27.Jun.2007 2.43am
Hello Morten,
I use this feature code for it and it works:
feature swsh {
lookup cswsh {
ignore sub @call @cswsh1';
sub @cswsh1' by @cswsh2;
} cswsh;
} swsh;
@call = all characters including the space
@cswsh1 = all uppercase character names
@cswsh2 = all uppercase character with swash names
Pieter
27.Jun.2007 5.00am
Hello Pieter and Ralf,
Thanks a lot – unfortunately, it dont works perfect...please look at the attached screenshot.
Of course, the must be a reason, but I can't see it. After the 'A', the Uppercase looks right,
but 'PH' should only the P be a swash!
Morten
27.Jun.2007 6.29am
Contextual swashes for beginnings
28.Jun.2007 2.36am
In addition: You should name your @cswsh2-class glyphs the other way round. Not "scwsh.P" but "P.cswsh". "P" is the relevant glypyh name and ".cswsh" the suffix indicating an alternate form ...
28.Jun.2007 4.24am
Thanks for your help – well, scripting is a hard work...;-)
Regards and thanks,
Morten
4.Jul.2007 9.11pm
Morten,
1. Your @call class should include all text glyphs, not just the plain uppercase and lowercase letters.
2. You might consider adding simple-substitution "init" and "fina" features into your font. The "init" would substitute regular letters with their initial forms, and "fina" would do the same for the final forms. These features are supported now (on user's discretion) in InDesign CS3.
A.
9.Jul.2007 1.23am
Hi Adam,
Yes, thanks, now it all works fine...great!
Morten