How starting "s" can be define so it typed as an alternate instead of space?
Tanveer Qureshi
Posts: 11
Hi,
I am new to this situation. I included "s" as a contextual alternate but when I check this on Adobe Illustrator and MS Word the starting "s" or newline "s" is typed as normal instead of alternate "s.alt". I think I am missing something. Anyone can help me with this?
Kind Regards
Tanveer
I am new to this situation. I included "s" as a contextual alternate but when I check this on Adobe Illustrator and MS Word the starting "s" or newline "s" is typed as normal instead of alternate "s.alt". I think I am missing something. Anyone can help me with this?
Kind Regards
Tanveer
0
Comments
-
What font editor are you using? What does the Feature coding look like?1
-
Hi Tanveer, could you copy-paste your calt feature code here?
1 -
Hi,
I am using FontLab 5. The code I am using is written below. Thanks!feature aalt{feature init;feature calt;} aalt;feature init {sub s by uniE001;} init;feature calt {sub s by uniE001;} calt;0 -
You need the foot mark, perhaps but do you not also need the space character first to make it the initial s?
0 -
You'll find some helpful info in this old thread.
I wouldn't use init, and you may have to rewrite your calt coding using "ignore sub." Essentially, it's easier for the renderer to understand where you *don't* want the substitution to take place since it doesn't recognize new lines. So instead of saying "switch only this one and that one," your code will say "except for all of these situations, switch them all."
2 -
Hi Craig,
This make sense. Where can I study ignore sub to use it? This may be hard for me as understanding but I will try if this works.Best
Tanveer0 -
Try using this instead:
feature calt {
ignore sub @Letters s';
sub s' by uniE001;
} calt;
Defining @Letters is left as an exercise for the reader. Depending on what the alternate looks like, you may or may not want to include things like hyphens in this class.
I'd get rid of your 'init' feature altogether.
2 -
Thank you so much André. This really works for me. Cheers!0
Categories
- All Categories
- 43 Introductions
- 3.7K Typeface Design
- 803 Font Technology
- 1K Technique and Theory
- 622 Type Business
- 444 Type Design Critiques
- 542 Type Design Software
- 30 Punchcutting
- 136 Lettering and Calligraphy
- 83 Technique and Theory
- 53 Lettering Critiques
- 485 Typography
- 303 History of Typography
- 114 Education
- 68 Resources
- 499 Announcements
- 80 Events
- 105 Job Postings
- 148 Type Releases
- 165 Miscellaneous News
- 270 About TypeDrawers
- 53 TypeDrawers Announcements
- 116 Suggestions and Bug Reports