• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# OpenType Feature File specification, section 4.h, example 2.
2# http://www.adobe.com/devnet/opentype/afdko/topic_feature_file_syntax.html
3
4languagesystem DFLT dflt;
5languagesystem latn dflt;
6languagesystem latn DEU;
7languagesystem cyrl dflt;
8languagesystem cyrl SRB;
9languagesystem grek dflt;
10
11feature liga {
12    # start of default rules that are applied under all language systems.
13    lookup HAS_I {
14        sub f f i by f_f_i;
15        sub f i by f_i;
16    } HAS_I;
17
18    lookup NO_I {
19        sub f f l by f_f_l;
20        sub f f by f_f;
21    } NO_I;
22
23    # end of default rules that are applied under all language systems.
24
25    script latn;
26    language dflt;
27    # default lookup for latn included under all languages for the latn script
28    sub f l by f_l;
29
30    language DEU;
31    # default lookups included under the DEU language
32    sub s s by germandbls;  # This is also included.
33
34    language TRK exclude_dflt;  # default lookups are excluded.
35    lookup NO_I;  # Only this lookup is included under the TRK language
36
37    script cyrl;
38    language SRB;
39    sub c t by c_t;  # this rule will apply only under script cyrl language SRB.
40} liga;
41