-
Notifications
You must be signed in to change notification settings - Fork 72
/
css-fonts-5.json
385 lines (385 loc) · 16.2 KB
/
css-fonts-5.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
{
"spec": {
"title": "CSS Fonts Module Level 5",
"url": "https://drafts.csswg.org/css-fonts-5/"
},
"properties": [
{
"name": "font-size-adjust",
"href": "https://drafts.csswg.org/css-fonts-5/#propdef-font-size-adjust",
"value": "none | [ ex-height | cap-height | ch-width | ic-width | ic-height ]? [ from-font | <number [0,∞]> ]",
"initial": "none",
"appliesTo": "all elements and text",
"inherited": "yes",
"percentages": "N/A",
"computedValue": "the keyword none, or a pair of a metric keyword and a <number>",
"canonicalOrder": "per grammar",
"animationType": "discrete if the keywords differ, otherwise by computed value type",
"values": [
{
"name": "none",
"prose": "No special font-size adjustment is applied.",
"href": "https://drafts.csswg.org/css-fonts-5/#valdef-font-size-adjust-none",
"type": "value",
"value": "none"
},
{
"name": "ex-height | cap-height | ch-width | ic-width | ic-height",
"prose": "Specifies the font metric to normalize, defaulting to ex-height: w3c/csswg-drafts/6384[css-fonts-5] font-size-adjust with missing metrics",
"href": "https://drafts.csswg.org/css-fonts-5/#valdef-font-size-adjust-ex-height--cap-height--ch-width--ic-width--ic-height",
"type": "value",
"value": "ex-height | cap-height | ch-width | ic-width | ic-height"
},
{
"name": "ex-height",
"prose": "Normalize the aspect value of the fonts, using the x-height divided by the font size.",
"href": "https://drafts.csswg.org/css-fonts-5/#valdef-font-size-adjust-ex-height",
"type": "value",
"value": "ex-height"
},
{
"name": "cap-height",
"prose": "Normalize the cap-height of the fonts, using the cap-height by the font size.",
"href": "https://drafts.csswg.org/css-fonts-5/#valdef-font-size-adjust-cap-height",
"type": "value",
"value": "cap-height"
},
{
"name": "ch-width",
"prose": "Normalize the horizontal narrow pitch of the fonts, using the advance width of “0” (ZERO, U+0030) divided by the font size.",
"href": "https://drafts.csswg.org/css-fonts-5/#valdef-font-size-adjust-ch-width",
"type": "value",
"value": "ch-width"
},
{
"name": "ic-width",
"prose": "Normalize the horizontal wide pitch of the font, using the advance width of “水” (CJK water ideograph, U+6C34) divided by the font size.",
"href": "https://drafts.csswg.org/css-fonts-5/#valdef-font-size-adjust-ic-width",
"type": "value",
"value": "ic-width"
},
{
"name": "ic-height",
"prose": "Normalize the vertical wide pitch of the font, using the advance height of “水” (CJK water ideograph, U+6C34) divided by the font size.",
"href": "https://drafts.csswg.org/css-fonts-5/#valdef-font-size-adjust-ic-height",
"type": "value",
"value": "ic-height"
},
{
"name": "<number [0,∞]>",
"prose": "Each font’s used size is normalized to match the chosen font metric to this specified proportion of the computed font-size. In other words, for each glyph, the adjusted font size to use u is calculated as: u = ( m / m′ ) s where: s = computed 'font-size!!property' value m = metric as specified by the 'font-size-adjust' property m′ = metric as specified in the actual font u = adjusted font-size to use Negative values are invalid.",
"href": "https://drafts.csswg.org/css-fonts-5/#valdef-font-size-adjust-number-0",
"type": "value",
"value": "<number [0,∞]>"
},
{
"name": "from-font",
"prose": "Computes to the <number> corresponding to the specified metric of the first available font. w3c/csswg-drafts/6384[css-fonts-5] font-size-adjust with missing metrics",
"href": "https://drafts.csswg.org/css-fonts-5/#valdef-font-size-adjust-from-font",
"type": "value",
"value": "from-font"
}
],
"styleDeclaration": [
"font-size-adjust",
"fontSizeAdjust"
]
}
],
"atrules": [
{
"name": "@font-face",
"href": "https://drafts.csswg.org/css-fonts-5/#at-font-face-rule",
"descriptors": [
{
"name": "font-size",
"href": "https://drafts.csswg.org/css-fonts-5/#descdef-font-face-font-size",
"for": "@font-face",
"value": "auto | [<number>]{1,2}",
"initial": "auto",
"values": [
{
"name": "auto",
"prose": "The font matches any font size",
"href": "https://drafts.csswg.org/css-fonts-5/#valdef-font-face-font-size-auto",
"type": "value",
"value": "auto"
},
{
"name": "<number>",
"prose": "If a single <number> is given the font matches that specific font size, only. If two <number>s are given, they specify a range of font sizes which will match.",
"href": "https://drafts.csswg.org/css-fonts-5/#valdef-font-face-font-size-number",
"type": "value",
"value": "<number>"
}
]
},
{
"name": "size-adjust",
"href": "https://drafts.csswg.org/css-fonts-5/#descdef-font-face-size-adjust",
"for": "@font-face",
"value": "<percentage [0,∞]>",
"initial": "100%"
},
{
"name": "ascent-override",
"href": "https://drafts.csswg.org/css-fonts-5/#descdef-font-face-ascent-override",
"for": "@font-face",
"value": "[ normal | <percentage [0,∞]> ]{1,2}",
"initial": "normal"
},
{
"name": "descent-override",
"href": "https://drafts.csswg.org/css-fonts-5/#descdef-font-face-descent-override",
"for": "@font-face",
"value": "[ normal | <percentage [0,∞]> ]{1,2}",
"initial": "normal"
},
{
"name": "line-gap-override",
"href": "https://drafts.csswg.org/css-fonts-5/#descdef-font-face-line-gap-override",
"for": "@font-face",
"value": "[ normal | <percentage [0,∞]> ]{1,2}",
"initial": "normal"
},
{
"name": "superscript-position-override",
"href": "https://drafts.csswg.org/css-fonts-5/#descdef-font-face-superscript-position-override",
"for": "@font-face",
"value": "[ normal | from-font | <percentage> ]{1,2}",
"initial": "normal"
},
{
"name": "subscript-position-override",
"href": "https://drafts.csswg.org/css-fonts-5/#descdef-font-face-subscript-position-override",
"for": "@font-face",
"value": "[ normal | from-font | <percentage> ]{1,2}",
"initial": "normal"
},
{
"name": "superscript-size-override",
"href": "https://drafts.csswg.org/css-fonts-5/#descdef-font-face-superscript-size-override",
"for": "@font-face",
"value": "[ normal | from-font | <percentage [0,∞]> ]{1,2}",
"initial": "normal"
},
{
"name": "subscript-size-override",
"href": "https://drafts.csswg.org/css-fonts-5/#descdef-font-face-subscript-size-override",
"for": "@font-face",
"value": "[ normal | from-font | <percentage [0,∞]> ]{1,2}",
"initial": "normal"
}
]
}
],
"selectors": [],
"values": [
{
"name": "<font-format>",
"href": "https://drafts.csswg.org/css-fonts-5/#font-format-values",
"type": "type",
"value": "[<string> | collection | embedded-opentype | opentype | svg | truetype | woff | woff2 ]"
},
{
"name": "<font-tech>",
"href": "https://drafts.csswg.org/css-fonts-5/#font-tech-values",
"type": "type",
"value": "[<font-features-tech> | <color-font-tech> | variations | palettes | incremental ]"
},
{
"name": "<font-features-tech>",
"href": "https://drafts.csswg.org/css-fonts-5/#font-features-tech-values",
"type": "type",
"value": "[features-opentype | features-aat | features-graphite]"
},
{
"name": "<color-font-tech>",
"href": "https://drafts.csswg.org/css-fonts-5/#color-font-tech-values",
"type": "type",
"value": "[color-COLRv0 | color-COLRv1 | color-SVG | color-sbix | color-CBDT ]"
}
],
"warnings": [
{
"msg": "Dangling value",
"name": "xxx",
"prose": "Placeholder text for the xxx generic font family.",
"href": "https://drafts.csswg.org/css-fonts-5/#valdef-font-family-xxx",
"type": "value",
"value": "xxx",
"for": "font-family"
},
{
"msg": "Dangling value",
"name": "xxx",
"prose": "Placeholder text for the xxx generic font family.",
"href": "https://drafts.csswg.org/css-fonts-5/#valdef-font-family-xxx",
"type": "value",
"value": "xxx",
"for": "<generic-family>"
},
{
"msg": "Dangling value",
"name": "normal",
"prose": "The corresponding metric value is obtained from the font as usual, as if this descriptor were absent from the @font-face block.",
"href": "https://drafts.csswg.org/css-fonts-5/#valdef-ascent-overridedescriptor-normal",
"type": "value",
"value": "normal",
"for": "ascent-override!!descriptor"
},
{
"msg": "Dangling value",
"name": "normal",
"prose": "The corresponding metric value is obtained from the font as usual, as if this descriptor were absent from the @font-face block.",
"href": "https://drafts.csswg.org/css-fonts-5/#valdef-ascent-overridedescriptor-normal",
"type": "value",
"value": "normal",
"for": "descent-override!!descriptor"
},
{
"msg": "Dangling value",
"name": "normal",
"prose": "The corresponding metric value is obtained from the font as usual, as if this descriptor were absent from the @font-face block.",
"href": "https://drafts.csswg.org/css-fonts-5/#valdef-ascent-overridedescriptor-normal",
"type": "value",
"value": "normal",
"for": "line-gap-override!!descriptor"
},
{
"msg": "Dangling value",
"name": "<percentage>",
"prose": "The corresponding metric is replaced by the given percentage multiplied by the effective font size after adjustment.",
"href": "https://drafts.csswg.org/css-fonts-5/#valdef-ascent-overridedescriptor-percentage",
"type": "value",
"value": "<percentage>",
"for": "ascent-override!!descriptor"
},
{
"msg": "Dangling value",
"name": "<percentage>",
"prose": "The corresponding metric is replaced by the given percentage multiplied by the effective font size after adjustment.",
"href": "https://drafts.csswg.org/css-fonts-5/#valdef-ascent-overridedescriptor-percentage",
"type": "value",
"value": "<percentage>",
"for": "descent-override!!descriptor"
},
{
"msg": "Dangling value",
"name": "<percentage>",
"prose": "The corresponding metric is replaced by the given percentage multiplied by the effective font size after adjustment.",
"href": "https://drafts.csswg.org/css-fonts-5/#valdef-ascent-overridedescriptor-percentage",
"type": "value",
"value": "<percentage>",
"for": "line-gap-override!!descriptor"
},
{
"msg": "Dangling value",
"name": "normal",
"prose": "The UA determines what metrics value to use, whether derived from the font or from some heuristic.",
"href": "https://drafts.csswg.org/css-fonts-5/#valdef-superscript-position-overridedescriptor-normal",
"type": "value",
"value": "normal",
"for": "superscript-position-override!!descriptor"
},
{
"msg": "Dangling value",
"name": "normal",
"prose": "The UA determines what metrics value to use, whether derived from the font or from some heuristic.",
"href": "https://drafts.csswg.org/css-fonts-5/#valdef-superscript-position-overridedescriptor-normal",
"type": "value",
"value": "normal",
"for": "subscript-position-override!!descriptor"
},
{
"msg": "Dangling value",
"name": "normal",
"prose": "The UA determines what metrics value to use, whether derived from the font or from some heuristic.",
"href": "https://drafts.csswg.org/css-fonts-5/#valdef-superscript-position-overridedescriptor-normal",
"type": "value",
"value": "normal",
"for": "superscript-size-override!!descriptor"
},
{
"msg": "Dangling value",
"name": "normal",
"prose": "The UA determines what metrics value to use, whether derived from the font or from some heuristic.",
"href": "https://drafts.csswg.org/css-fonts-5/#valdef-superscript-position-overridedescriptor-normal",
"type": "value",
"value": "normal",
"for": "subscript-size-override!!descriptor"
},
{
"msg": "Dangling value",
"name": "from-font",
"prose": "The corresponding metric in the font data is used, if any. (If the metric is missing, same as normal.)",
"href": "https://drafts.csswg.org/css-fonts-5/#valdef-superscript-position-overridedescriptor-from-font",
"type": "value",
"value": "from-font",
"for": "superscript-position-override!!descriptor"
},
{
"msg": "Dangling value",
"name": "from-font",
"prose": "The corresponding metric in the font data is used, if any. (If the metric is missing, same as normal.)",
"href": "https://drafts.csswg.org/css-fonts-5/#valdef-superscript-position-overridedescriptor-from-font",
"type": "value",
"value": "from-font",
"for": "subscript-position-override!!descriptor"
},
{
"msg": "Dangling value",
"name": "from-font",
"prose": "The corresponding metric in the font data is used, if any. (If the metric is missing, same as normal.)",
"href": "https://drafts.csswg.org/css-fonts-5/#valdef-superscript-position-overridedescriptor-from-font",
"type": "value",
"value": "from-font",
"for": "superscript-size-override!!descriptor"
},
{
"msg": "Dangling value",
"name": "from-font",
"prose": "The corresponding metric in the font data is used, if any. (If the metric is missing, same as normal.)",
"href": "https://drafts.csswg.org/css-fonts-5/#valdef-superscript-position-overridedescriptor-from-font",
"type": "value",
"value": "from-font",
"for": "subscript-size-override!!descriptor"
},
{
"msg": "Dangling value",
"name": "<percentage>",
"prose": "The corresponding metric is replaced by the given percentage multiplied by the used font size.",
"href": "https://drafts.csswg.org/css-fonts-5/#valdef-superscript-position-overridedescriptor-percentage",
"type": "value",
"value": "<percentage>",
"for": "superscript-position-override!!descriptor"
},
{
"msg": "Dangling value",
"name": "<percentage>",
"prose": "The corresponding metric is replaced by the given percentage multiplied by the used font size.",
"href": "https://drafts.csswg.org/css-fonts-5/#valdef-superscript-position-overridedescriptor-percentage",
"type": "value",
"value": "<percentage>",
"for": "subscript-position-override!!descriptor"
},
{
"msg": "Dangling value",
"name": "<percentage>",
"prose": "The corresponding metric is replaced by the given percentage multiplied by the used font size.",
"href": "https://drafts.csswg.org/css-fonts-5/#valdef-superscript-position-overridedescriptor-percentage",
"type": "value",
"value": "<percentage>",
"for": "superscript-size-override!!descriptor"
},
{
"msg": "Dangling value",
"name": "<percentage>",
"prose": "The corresponding metric is replaced by the given percentage multiplied by the used font size.",
"href": "https://drafts.csswg.org/css-fonts-5/#valdef-superscript-position-overridedescriptor-percentage",
"type": "value",
"value": "<percentage>",
"for": "subscript-size-override!!descriptor"
}
]
}