xref: /aosp_15_r20/external/fonttools/Tests/feaLib/data/STAT_bad.fea (revision e1fe3e4ad2793916b15cccdc4a7da52a7e1dd0e9)
1*e1fe3e4aSElliott Hughes# bad fea file: Testing DesignAxis tag with incorrect label
2*e1fe3e4aSElliott Hughestable name {
3*e1fe3e4aSElliott Hughes	nameid 25 "TestFont";
4*e1fe3e4aSElliott Hughes} name;
5*e1fe3e4aSElliott Hughes
6*e1fe3e4aSElliott Hughes
7*e1fe3e4aSElliott Hughestable STAT {
8*e1fe3e4aSElliott Hughes
9*e1fe3e4aSElliott Hughes   ElidedFallbackName { name "Roman"; };
10*e1fe3e4aSElliott Hughes
11*e1fe3e4aSElliott Hughes   DesignAxis opsz 0 { badtag "Optical Size"; };  #'badtag' instead of 'name' is incorrect
12*e1fe3e4aSElliott Hughes   DesignAxis wdth 1 { name "Width"; };
13*e1fe3e4aSElliott Hughes   DesignAxis wght 2 { name "Weight"; };
14*e1fe3e4aSElliott Hughes   DesignAxis ital 3 { name "Italic"; };
15*e1fe3e4aSElliott Hughes
16*e1fe3e4aSElliott Hughes   AxisValue {
17*e1fe3e4aSElliott Hughes      location opsz 8 5 9;
18*e1fe3e4aSElliott Hughes      location wdth 300 350 450;
19*e1fe3e4aSElliott Hughes      name "Caption";
20*e1fe3e4aSElliott Hughes   };
21*e1fe3e4aSElliott Hughes
22*e1fe3e4aSElliott Hughes   AxisValue {
23*e1fe3e4aSElliott Hughes      location opsz 11 9 12;
24*e1fe3e4aSElliott Hughes      name "Text";
25*e1fe3e4aSElliott Hughes      flag OlderSiblingFontAttribute ElidableAxisValueName ;
26*e1fe3e4aSElliott Hughes   };
27*e1fe3e4aSElliott Hughes
28*e1fe3e4aSElliott Hughes   AxisValue {
29*e1fe3e4aSElliott Hughes      location opsz 16.7 12 24;
30*e1fe3e4aSElliott Hughes      name "Subhead";
31*e1fe3e4aSElliott Hughes   };
32*e1fe3e4aSElliott Hughes
33*e1fe3e4aSElliott Hughes   AxisValue {
34*e1fe3e4aSElliott Hughes      location opsz 72 24 72;
35*e1fe3e4aSElliott Hughes      name "Display";
36*e1fe3e4aSElliott Hughes   };
37*e1fe3e4aSElliott Hughes
38*e1fe3e4aSElliott Hughes   AxisValue {
39*e1fe3e4aSElliott Hughes      location wdth 80 80 89;
40*e1fe3e4aSElliott Hughes      name "Condensed";
41*e1fe3e4aSElliott Hughes   };
42*e1fe3e4aSElliott Hughes
43*e1fe3e4aSElliott Hughes   AxisValue {
44*e1fe3e4aSElliott Hughes      location wdth 90 90 96;
45*e1fe3e4aSElliott Hughes      name "Semicondensed";
46*e1fe3e4aSElliott Hughes   };
47*e1fe3e4aSElliott Hughes
48*e1fe3e4aSElliott Hughes   AxisValue {
49*e1fe3e4aSElliott Hughes      location wdth 100 97 101;
50*e1fe3e4aSElliott Hughes      name "Normal";
51*e1fe3e4aSElliott Hughes      flag ElidableAxisValueName;
52*e1fe3e4aSElliott Hughes   };
53*e1fe3e4aSElliott Hughes
54*e1fe3e4aSElliott Hughes   AxisValue {
55*e1fe3e4aSElliott Hughes      location wdth 125 102 125;
56*e1fe3e4aSElliott Hughes      name "Extended";
57*e1fe3e4aSElliott Hughes   };
58*e1fe3e4aSElliott Hughes
59*e1fe3e4aSElliott Hughes   AxisValue {
60*e1fe3e4aSElliott Hughes      location wght 300 300 349;
61*e1fe3e4aSElliott Hughes      name "Light";
62*e1fe3e4aSElliott Hughes   };
63*e1fe3e4aSElliott Hughes
64*e1fe3e4aSElliott Hughes   AxisValue {
65*e1fe3e4aSElliott Hughes      location wght 400 350 449;
66*e1fe3e4aSElliott Hughes      name "Regular";
67*e1fe3e4aSElliott Hughes      flag ElidableAxisValueName;
68*e1fe3e4aSElliott Hughes   };
69*e1fe3e4aSElliott Hughes
70*e1fe3e4aSElliott Hughes   AxisValue {
71*e1fe3e4aSElliott Hughes      location wght 500 450 549;
72*e1fe3e4aSElliott Hughes      name "Medium";
73*e1fe3e4aSElliott Hughes   };
74*e1fe3e4aSElliott Hughes
75*e1fe3e4aSElliott Hughes   AxisValue {
76*e1fe3e4aSElliott Hughes      location wght 600 550 649;
77*e1fe3e4aSElliott Hughes      name "Semibold";
78*e1fe3e4aSElliott Hughes   };
79*e1fe3e4aSElliott Hughes
80*e1fe3e4aSElliott Hughes   AxisValue {
81*e1fe3e4aSElliott Hughes      location wght 700 650 749;
82*e1fe3e4aSElliott Hughes      name "Bold";
83*e1fe3e4aSElliott Hughes   };
84*e1fe3e4aSElliott Hughes
85*e1fe3e4aSElliott Hughes   AxisValue {
86*e1fe3e4aSElliott Hughes      location wght 900 750 900;
87*e1fe3e4aSElliott Hughes      name "Black";
88*e1fe3e4aSElliott Hughes   };
89*e1fe3e4aSElliott Hughes
90*e1fe3e4aSElliott Hughes   AxisValue {
91*e1fe3e4aSElliott Hughes      location ital 0;
92*e1fe3e4aSElliott Hughes      name "Roman";
93*e1fe3e4aSElliott Hughes      flag ElidableAxisValueName;
94*e1fe3e4aSElliott Hughes   };
95*e1fe3e4aSElliott Hughes
96*e1fe3e4aSElliott Hughes} STAT;
97