-
Notifications
You must be signed in to change notification settings - Fork 4.3k
/
Copy pathfont-collection.json
146 lines (146 loc) · 3.69 KB
/
font-collection.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
{
"title": "JSON schema for WordPress Font Collections",
"$schema": "http://json-schema.org/draft-07/schema#",
"definitions": {
"fontFace": {
"description": "Font face settings, with added preview property.",
"type": "object",
"properties": {
"preview": {
"description": "URL to a preview image of the font.",
"type": "string"
},
"fontFamily": {
"description": "CSS font-family value.",
"type": "string",
"default": ""
},
"fontStyle": {
"description": "CSS font-style value.",
"type": "string",
"default": "normal"
},
"fontWeight": {
"description": "List of available font weights, separated by a space.",
"oneOf": [ { "type": "string" }, { "type": "integer" } ],
"default": "400"
},
"fontDisplay": {
"description": "CSS font-display value.",
"type": "string",
"enum": [ "auto", "block", "fallback", "swap", "optional" ],
"default": "fallback"
},
"src": {
"description": "Paths or URLs to the font files.",
"oneOf": [
{ "type": "string" },
{
"type": "array",
"items": {
"type": "string"
}
}
],
"default": []
},
"fontStretch": {
"description": "CSS font-stretch value.",
"type": "string"
},
"ascentOverride": {
"description": "CSS ascent-override value.",
"type": "string"
},
"descentOverride": {
"description": "CSS descent-override value.",
"type": "string"
},
"fontVariant": {
"description": "CSS font-variant value.",
"type": "string"
},
"fontFeatureSettings": {
"description": "CSS font-feature-settings value.",
"type": "string"
},
"fontVariationSettings": {
"description": "CSS font-variation-settings value.",
"type": "string"
},
"lineGapOverride": {
"description": "CSS line-gap-override value.",
"type": "string"
},
"sizeAdjust": {
"description": "CSS size-adjust value.",
"type": "string"
},
"unicodeRange": {
"description": "CSS unicode-range value.",
"type": "string"
}
},
"required": [ "fontFamily", "src" ],
"additionalProperties": false
}
},
"type": "object",
"properties": {
"$schema": {
"description": "JSON schema URI for font-collection.json.",
"type": "string"
},
"font_families": {
"description": "Array of font families ready to be installed.",
"type": "array",
"items": {
"type": "object",
"properties": {
"font_family_settings": {
"description": "Font family settings, with added preview property.",
"type": "object",
"properties": {
"name": {
"description": "Name of the font family preset, translatable.",
"type": "string"
},
"slug": {
"description": "Kebab-case unique identifier for the font family preset.",
"type": "string"
},
"fontFamily": {
"description": "CSS font-family value.",
"type": "string"
},
"preview": {
"type": "string",
"description": "URL to a preview image of the font family."
},
"fontFace": {
"description": "Array of font-face definitions.",
"type": "array",
"items": {
"$ref": "#/definitions/fontFace"
}
}
},
"required": [ "name", "fontFamily", "slug" ],
"additionalProperties": false
},
"categories": {
"type": "array",
"description": "Array of category slugs.",
"items": {
"type": "string"
}
}
},
"required": [ "font_family_settings" ],
"additionalProperties": false
}
}
},
"additionalProperties": false,
"required": [ "font_families" ]
}