Skip to content

Commit ce0f981

Browse files
feat(webfonts): update the api
#### webfonts:v1 The following keys were added: - schemas.Tag (Total Keys: 5) - schemas.Webfont.properties.tags (Total Keys: 2)
1 parent 4254558 commit ce0f981

File tree

2 files changed

+35
-3
lines changed

2 files changed

+35
-3
lines changed

docs/dyn/webfonts_v1.webfonts.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ <h3>Method Details</h3>
9696
CAPABILITY_UNSPECIFIED - Default means static ttf fonts.
9797
WOFF2 - Use WOFF2(Compressed)instead of ttf.
9898
VF - Prefer variable font files instead of static fonts instantiated at standard weights.
99+
FAMILY_TAGS - Include tags that apply to the entire family in the response.
99100
category: string, Filters by Webfont.category, if category is found in Webfont.categories. If not set, returns all families.
100101
family: string, Filters by Webfont.family, using literal match. If not set, returns all families (repeated)
101102
sort: string, Enables sorting of the list.
@@ -139,6 +140,12 @@ <h3>Method Details</h3>
139140
&quot;subsets&quot;: [ # The scripts supported by the font.
140141
&quot;A String&quot;,
141142
],
143+
&quot;tags&quot;: [ # The tags that apply to this family.
144+
{ # Metadata for a tag.
145+
&quot;name&quot;: &quot;A String&quot;, # The name of the tag.
146+
&quot;weight&quot;: 3.14, # The weight of the tag.
147+
},
148+
],
142149
&quot;variants&quot;: [ # The available variants for the font.
143150
&quot;A String&quot;,
144151
],

googleapiclient/discovery_cache/documents/webfonts.v1.json

Lines changed: 28 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,12 +109,14 @@
109109
"enum": [
110110
"CAPABILITY_UNSPECIFIED",
111111
"WOFF2",
112-
"VF"
112+
"VF",
113+
"FAMILY_TAGS"
113114
],
114115
"enumDescriptions": [
115116
"Default means static ttf fonts.",
116117
"Use WOFF2(Compressed)instead of ttf.",
117-
"Prefer variable font files instead of static fonts instantiated at standard weights."
118+
"Prefer variable font files instead of static fonts instantiated at standard weights.",
119+
"Include tags that apply to the entire family in the response."
118120
],
119121
"location": "query",
120122
"repeated": true,
@@ -166,7 +168,7 @@
166168
}
167169
}
168170
},
169-
"revision": "20250121",
171+
"revision": "20250917",
170172
"rootUrl": "https://webfonts.googleapis.com/",
171173
"schemas": {
172174
"Axis": {
@@ -190,6 +192,22 @@
190192
},
191193
"type": "object"
192194
},
195+
"Tag": {
196+
"description": "Metadata for a tag.",
197+
"id": "Tag",
198+
"properties": {
199+
"name": {
200+
"description": "The name of the tag.",
201+
"type": "string"
202+
},
203+
"weight": {
204+
"description": "The weight of the tag.",
205+
"format": "float",
206+
"type": "number"
207+
}
208+
},
209+
"type": "object"
210+
},
193211
"Webfont": {
194212
"description": "Metadata describing a family of fonts.",
195213
"id": "Webfont",
@@ -242,6 +260,13 @@
242260
},
243261
"type": "array"
244262
},
263+
"tags": {
264+
"description": "The tags that apply to this family.",
265+
"items": {
266+
"$ref": "Tag"
267+
},
268+
"type": "array"
269+
},
245270
"variants": {
246271
"description": "The available variants for the font.",
247272
"items": {

0 commit comments

Comments
 (0)