OpenType Layout Features - Lookup

<< Click to Display Table of Contents >>

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

OpenType Layout Features - Lookup

The lookup keyword is used in two ways: To reference a lookup and to declare a lookup. A lookup is referenced from a feature block to indicate the specified lookup should be used for that feature. Lookups can also be referenced from Chained context lookups


Referencing a lookup from a feature:

feature MyLigatures liga {

 lookup <name>;



Referencing a lookup from a chained context lookup:

lookup MyChainedContextLookup {

 context (@BackTrackClasses) @InputClasses (@LookAheadClasses);

 sub 0 <lookup name>;



Declaring a lookup:

lookup <name> <tag> {

 <lookup declarations>



Note: It is possible to set optional lookup flags (properties) via the lookupflags keyword.