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.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