OpenType Feature Format
Michael Jarboe
Posts: 265
I was looking closer at an OpenType 'zero' feature for the slashed zero replacement and realized it was written out using each grouping bracketed rather than having each separate grouping designated as a class.
Written like
I was just curious about this as it all gets decompiled so is it simply a case of the feature being easy enough to write out vs. using classes?
Written like
sub [zero zero.op zero.lt] by [slashzero slashzero.op zeroslash.lt]as opposed to
sub @zero1 by @zero2
I was just curious about this as it all gets decompiled so is it simply a case of the feature being easy enough to write out vs. using classes?
0
Comments
-
Yes, they're the same. Probably just a short enough list that someone didn't want to write a class.2
-
Both lines are using classes, the first are just unnamed classes. But anyway it is just syntactic sugar, substitution lookups does not use classes, so both are the same as:
sub zero by slashzero;
sub zero.op by slashzero.op;
sub zero.lt by zeroslash.lt;2 -
The good thing about creating classes is that you can use it in different lookups, without having to write the groups down more than once. If you are just going to use that group just once then you don't need a class.2
Categories
- All Categories
- 43 Introductions
- 3.7K Typeface Design
- 806 Font Technology
- 1.1K Technique and Theory
- 622 Type Business
- 446 Type Design Critiques
- 543 Type Design Software
- 30 Punchcutting
- 137 Lettering and Calligraphy
- 84 Technique and Theory
- 53 Lettering Critiques
- 489 Typography
- 304 History of Typography
- 115 Education
- 70 Resources
- 500 Announcements
- 80 Events
- 105 Job Postings
- 149 Type Releases
- 165 Miscellaneous News
- 271 About TypeDrawers
- 53 TypeDrawers Announcements
- 117 Suggestions and Bug Reports