User Guide
FontLab 4
646
lookup
The font editor can label a set of rules and refer to it explicitly later on, in
order to have different parts of the font tables refer to the same lookup.
This decreases the size of the font in addition to freeing the editor from
maintaining duplicate sets of rules.
To define and label a lookup, use a named lookup block:
lookup <label> {
# rules to be grouped
} <label>;
To refer to the lookup later on, use a lookup reference statement:
lookup <label>;
For example:
lookup SHARED { # lookup definition
# ...
} SHARED;
# ...
lookup SHARED; # lookup reference
Since the labelled block literally defines a single lookup in the font, the
rules within the lookup block must be of the same lookup type and have the
same lookupflag attribute. The lookup block must be specified within a
feature block and may not contain any other kind of block.