@@ -11,6 +11,9 @@ postcssTape(plugin)({
11
11
'google-fonts' : {
12
12
message : "supports google fonts" ,
13
13
} ,
14
+ 'google-fonts-once' : {
15
+ message : "adds google fonts once" ,
16
+ } ,
14
17
'font-display-option' : {
15
18
message : "supports font-display option" ,
16
19
options : {
@@ -28,4 +31,154 @@ postcssTape(plugin)({
28
31
}
29
32
} ,
30
33
} ,
34
+ 'custom-google-fonts:with-default-formats' : {
35
+ message : "supports custom google fonts (default formats)" ,
36
+ options : {
37
+ variants : {
38
+ 'Open Sans' : {
39
+ '300' : [ ]
40
+ }
41
+ }
42
+ } ,
43
+ } ,
44
+ 'custom-google-fonts:unicode-range' : {
45
+ message : "supports custom unicode-range" ,
46
+ options : {
47
+ variants : {
48
+ 'Open Sans' : {
49
+ '300' : [
50
+ 'woff' ,
51
+ 'U+0100-024F, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF'
52
+ ] ,
53
+ '400 italic' : [ 'eot woff' ]
54
+ }
55
+ }
56
+ } ,
57
+ } ,
58
+ 'custom-google-fonts:unicode-range-google-subsets' : {
59
+ message : "supports custom unicode-range (google subsets)" ,
60
+ options : {
61
+ variants : {
62
+ 'Open Sans' : {
63
+ '300' : [
64
+ 'woff2' ,
65
+ 'cyrillic, latin-ext'
66
+ ] ,
67
+ '400 italic' : [ 'woff2' , 'vietnamese' ]
68
+ }
69
+ }
70
+ } ,
71
+ } ,
72
+ 'custom-google-fonts:custom-font-stretch-omit-normal' : {
73
+ message : "supports custom unicode-range (google subsets)" ,
74
+ options : {
75
+ variants : {
76
+ 'Open Sans' : {
77
+ '300 condensed' : [ 'woff' ] ,
78
+ '400 italic' : [ 'eot woff' ]
79
+ }
80
+ }
81
+ } ,
82
+ } ,
83
+ 'custom-google-fonts:custom-font-stretch-with-normal' : {
84
+ message : "supports custom unicode-range (google subsets)" ,
85
+ options : {
86
+ variants : {
87
+ 'Open Sans' : {
88
+ '300 normal condensed' : [ 'woff' ] ,
89
+ '400 italic' : [ 'eot woff' ]
90
+ }
91
+ }
92
+ } ,
93
+ } ,
94
+ 'custom-google-fonts:custom-font-stretch-with-italic' : {
95
+ message : "supports custom unicode-range (google subsets)" ,
96
+ options : {
97
+ variants : {
98
+ 'Open Sans' : {
99
+ '300' : [ 'woff' ] ,
100
+ '400 italic ultra-condensed' : [ 'eot woff' ]
101
+ }
102
+ }
103
+ } ,
104
+ } ,
105
+ 'ignore' : {
106
+ message : "supports ignoring a declaration" ,
107
+ } ,
108
+ 'hosted-fonts' : {
109
+ message : "supports hosted fonts" ,
110
+ options : {
111
+ hosted : [ './test/fonts' ]
112
+ }
113
+ } ,
114
+ 'hosted-fonts:custom-font-path' : {
115
+ message : "supports hosted fonts" ,
116
+ options : {
117
+ hosted : [ './test/fonts' , '/some/custom/path' ]
118
+ } ,
119
+ } ,
120
+ 'preserves-existing-font-face' : {
121
+ message : "does not overwrite existing @font-face rules" ,
122
+ } ,
123
+ 'foundry-exclusion' : {
124
+ message : "support foundry exclusion" ,
125
+ options : {
126
+ foundries : 'hosted'
127
+ } ,
128
+ } ,
129
+ 'font-aliasing' : {
130
+ message : "support font aliasing" ,
131
+ options : {
132
+ aliases : {
133
+ body : 'Open Sans'
134
+ } ,
135
+ variants : {
136
+ body : {
137
+ '400' : [ 'woff' ]
138
+ }
139
+ }
140
+ } ,
141
+ } ,
142
+ 'custom-fonts' : {
143
+ message : "support custom fonts" ,
144
+ options : {
145
+ custom : {
146
+ body : {
147
+ variants : {
148
+ normal : {
149
+ 400 : {
150
+ url : {
151
+ woff2 : 'path/to/my-body-font.woff2'
152
+ }
153
+ }
154
+ }
155
+ }
156
+ }
157
+ }
158
+ } ,
159
+ } ,
160
+ 'async-font-loading' : {
161
+ message : "support async font loading" ,
162
+ options : {
163
+ async : './test/async-font-loading.js'
164
+ } ,
165
+ } ,
166
+ 'protocol:http' : {
167
+ message : "supports custom configuration protocol (http)" ,
168
+ options : {
169
+ protocol : 'http:'
170
+ } ,
171
+ } ,
172
+ 'protocol:https' : {
173
+ message : "supports custom configuration protocol (https)" ,
174
+ options : {
175
+ protocol : 'https:'
176
+ } ,
177
+ } ,
178
+ 'material-icons' : {
179
+ message : "supports Material Icons" ,
180
+ options : {
181
+ protocol : 'https:'
182
+ } ,
183
+ } ,
31
184
} ) ;
0 commit comments