xref: /aosp_15_r20/external/fonttools/Tests/feaLib/data/spec5d2.fea (revision e1fe3e4ad2793916b15cccdc4a7da52a7e1dd0e9)
1*e1fe3e4aSElliott Hughes# OpenType Feature File specification, section 5.d, example 2.
2*e1fe3e4aSElliott Hughes# http://www.adobe.com/devnet/opentype/afdko/topic_feature_file_syntax.html
3*e1fe3e4aSElliott Hughes
4*e1fe3e4aSElliott Hughes# A contiguous set of ligature rules does not need to be ordered in
5*e1fe3e4aSElliott Hughes# any particular way by the font editor; the implementation software
6*e1fe3e4aSElliott Hughes# must do the appropriate sorting.
7*e1fe3e4aSElliott Hughes
8*e1fe3e4aSElliott Hughes# So:
9*e1fe3e4aSElliott Hughesfeature F1 {
10*e1fe3e4aSElliott Hughes    sub f f by f_f;
11*e1fe3e4aSElliott Hughes    sub f i by f_i;
12*e1fe3e4aSElliott Hughes    sub f f i by f_f_i;
13*e1fe3e4aSElliott Hughes    sub o f f i by o_f_f_i;
14*e1fe3e4aSElliott Hughes} F1;
15*e1fe3e4aSElliott Hughes
16*e1fe3e4aSElliott Hughes# will produce an identical representation in the font as:
17*e1fe3e4aSElliott Hughesfeature F2 {
18*e1fe3e4aSElliott Hughes    sub o f f i by o_f_f_i;
19*e1fe3e4aSElliott Hughes    sub f f i by f_f_i;
20*e1fe3e4aSElliott Hughes    sub f f by f_f;
21*e1fe3e4aSElliott Hughes    sub f i by f_i;
22*e1fe3e4aSElliott Hughes} F2;
23