replace letters with OT feature

morten
Posts: 5
Hello,
A specific problem: In cases where the letters 'rn' meets in words, I want to replace the 'n' with an alternate one.
And I can do so with this script:
feature calt {
sub r n' by n.ss01;
} calt;
But: I also want the opportunity to replace 'n' with some familiar accents-glyphs like napostrophe, ntilde, nacute, ncaron, ncommaaccent. In the same script.
Of course, I can make a lot of ligatures in the font, but I prefer not to do so.
In advance, thanks so much for helping!
Best,
Morten
0
Comments
-
Just need to something like this:
sub r [n napostrophe ntilde ncaron ncommaaccent]' by [n.ss01 napostrophe.ss01 ntilde.ss01 ncaron.ss01 ncommaaccent.ss01]';
The bracketed parts can be replaced by classes optionally.2
Categories
- All Categories
- 44 Introductions
- 3.8K Typeface Design
- 474 Type Design Critiques
- 554 Type Design Software
- 1.1K Type Design Technique & Theory
- 637 Type Business
- 827 Font Technology
- 29 Punchcutting
- 505 Typography
- 120 Type Education
- 312 Type History
- 73 Type Resources
- 109 Lettering and Calligraphy
- 30 Lettering Critiques
- 79 Lettering Technique & Theory
- 527 Announcements
- 84 Events
- 110 Job Postings
- 163 Type Releases
- 169 Miscellaneous News
- 273 About TypeDrawers
- 54 TypeDrawers Announcements
- 117 Suggestions and Bug Reports