OpenType Feature Format

Michael JarboeMichael Jarboe Posts: 265
edited November 2015 in Technique and Theory
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
sub [zero zero.op] by [slashzero slashzero.op] 
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?


  • Yes, they're the same. Probably just a short enough list that someone didn't want to write a class.
  • 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 by;

  • 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.
Sign In or Register to comment.