How to code alternate mark attachment in a stylistic set?
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
- 43 Introductions
- 3.7K Typeface Design
- 800 Font Technology
- 1K Technique and Theory
- 617 Type Business
- 444 Type Design Critiques
- 541 Type Design Software
- 30 Punchcutting
- 136 Lettering and Calligraphy
- 83 Technique and Theory
- 53 Lettering Critiques
- 483 Typography
- 301 History of Typography
- 114 Education
- 68 Resources
- 498 Announcements
- 79 Events
- 105 Job Postings
- 148 Type Releases
- 165 Miscellaneous News
- 269 About TypeDrawers
- 53 TypeDrawers Announcements
- 116 Suggestions and Bug Reports