OpenType substitution: many to many (replace sequence by another sequence)

Wei Huang
Posts: 98
How do I write an opentype rule like the following:
Thanks in advance
f f is replaced with f.alt1 f.alt2I'm not using ligatures as I was thinking of using these glyphs for other similar substitutions. The following does not work:
sub f' f' by f.alt1 f.alt2;
Thanks in advance
Tagged:
0
Comments
-
lookup firstSub { sub f' f by f.alt1; } firstSub; lookup secondSub { sub f.alt1 f' by f.alt2; } secondSub;
1 -
You can replace one by one, many by one or one by many. If you want to replace many by many, you need to do a series of contextual lookups, exchanging one glyph at a time, as Paul shows.1
-
You probably want a higher level representation of the many to many substitution and have a program spool it out into the series of lookups Adam describes.
https://github.com/davelab6/dancingshoes is one such high level representation, by Yanone. Glyphs 2 (in beta, available to users who register for a license directly not via appstore) seems to has a similar high level representation, since it auto-generates the feature code for eg Arabic, Thai and Devanagari fonts, based on the glyphs available
0
Categories
- All Categories
- 43 Introductions
- 3.8K Typeface Design
- 815 Font Technology
- 1.1K Technique and Theory
- 633 Type Business
- 450 Type Design Critiques
- 549 Type Design Software
- 30 Punchcutting
- 138 Lettering and Calligraphy
- 85 Technique and Theory
- 53 Lettering Critiques
- 499 Typography
- 308 History of Typography
- 117 Education
- 74 Resources
- 513 Announcements
- 82 Events
- 107 Job Postings
- 156 Type Releases
- 167 Miscellaneous News
- 271 About TypeDrawers
- 53 TypeDrawers Announcements
- 117 Suggestions and Bug Reports