OpenType Layout Features - Class

<< Click to Display Table of Contents >>

Navigation:  Editing Fonts > Format > OpenType Layout Features > Script Editor > Script Syntax >

OpenType Layout Features - Class

The class keyword is used to declare a class of glyphs and are defined with a list of glyph names and/or class names inside a pair of brackets.


class @<class name> [ <glyphs> ];



name is a name you can create yourself. You may only use a-z, A-Z, 0-9 and "_" in your name and it must start with an @ (at) sign. Names are case-sensitive, and may only be declared once.


Glyph classes can be used in several ways. For example:

lookup MyLookupTable {

 sub @lowercase -> @smallcaps;