OpenType Layout Features - Lookup

Previous  Next

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 (@BackTrackGroups) @InputGroups (@LookAheadGroups);

 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.