How to code alternate mark attachment in a stylistic set?
Options

Oliver Weiss (Walden Font Co.)
Posts: 213
I would like to create stylistic sets that allow diacritics to be at a different distances from the letter they're attached to.
I'm new to the mark feature and haven't found a lot of resources around it. How would I use a different mark feature definition in a stylist set? E.g. ss01 causes all anchors defined by the mark feature to be at 500 units from the baseline, ss02 moves them to 750. What would be the syntax, if this is even the right way to go about it. If not, how else could I accomplish this that doesn't involve creating alternate glyphs?
I'm new to the mark feature and haven't found a lot of resources around it. How would I use a different mark feature definition in a stylist set? E.g. ss01 causes all anchors defined by the mark feature to be at 500 units from the baseline, ss02 moves them to 750. What would be the syntax, if this is even the right way to go about it. If not, how else could I accomplish this that doesn't involve creating alternate glyphs?
Tagged:
0
Comments
-
There's a couple of different ways to do this.
One way is to perform substitutions in the Stylistic Set features so that you actually switch to a different mark glyph that looks the same but has its own anchor positioning e.g.
acutecomb -> acutecomb.ss01
The other way is to put the actual GPOS mark positioning into the Stylistic Set features. I would do this by defining separate mark anchor attachment lookups, and then associating them with appropriate ssXX features.
The big caveat with either approach is that a lot of text engines automatically favour precomposed diacritics, so even if the input text is a + acutecomb, this will be rendered using the precomposed /aacute/ glyph. You can use the ccmp feature to decompose /aacute/ to /a/acutecomb/, and this will work in a lot of places, but there is a longstanding bug in InDesign what prevents ccmp decomposition from working properly.2 -
Thanks, John. Sounds like I may be better off making alternatives if I want maximum compatibility.1
-
Sadly, yes.1
Categories
- All Categories
- 46 Introductions
- 3.8K Typeface Design
- 478 Type Design Critiques
- 556 Type Design Software
- 1.1K Type Design Technique & Theory
- 643 Type Business
- 833 Font Technology
- 29 Punchcutting
- 510 Typography
- 120 Type Education
- 315 Type History
- 75 Type Resources
- 109 Lettering and Calligraphy
- 30 Lettering Critiques
- 79 Lettering Technique & Theory
- 534 Announcements
- 86 Events
- 110 Job Postings
- 167 Type Releases
- 170 Miscellaneous News
- 274 About TypeDrawers
- 53 TypeDrawers Announcements
- 119 Suggestions and Bug Reports