Skip to content

Commit 789ea52

Browse files
feat(webfonts): update the api
#### webfonts:v1 The following keys were added: - resources.webfonts.methods.list.parameters.capability (Total Keys: 3) - resources.webfonts.methods.list.parameters.family (Total Keys: 3) - resources.webfonts.methods.list.parameters.subset (Total Keys: 2) - schemas.Axis (Total Keys: 7) - schemas.Webfont.properties.axes (Total Keys: 2) - schemas.Webfont.properties.menu.type (Total Keys: 1)
1 parent 56c8a0c commit 789ea52

File tree

2 files changed

+77
-3
lines changed

2 files changed

+77
-3
lines changed

docs/dyn/webfonts_v1.webfonts.html

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ <h2>Instance Methods</h2>
7878
<code><a href="#close">close()</a></code></p>
7979
<p class="firstline">Close httplib2 connections.</p>
8080
<p class="toc_element">
81-
<code><a href="#list">list(sort=None, x__xgafv=None)</a></code></p>
81+
<code><a href="#list">list(capability=None, family=None, sort=None, subset=None, x__xgafv=None)</a></code></p>
8282
<p class="firstline">Retrieves the list of fonts currently served by the Google Fonts Developer API.</p>
8383
<h3>Method Details</h3>
8484
<div class="method">
@@ -87,10 +87,16 @@ <h3>Method Details</h3>
8787
</div>
8888

8989
<div class="method">
90-
<code class="details" id="list">list(sort=None, x__xgafv=None)</code>
90+
<code class="details" id="list">list(capability=None, family=None, sort=None, subset=None, x__xgafv=None)</code>
9191
<pre>Retrieves the list of fonts currently served by the Google Fonts Developer API.
9292

9393
Args:
94+
capability: string, Controls the font urls in `Webfont.files`, by default, static ttf fonts are sent. (repeated)
95+
Allowed values
96+
CAPABILITY_UNSPECIFIED - Default means static ttf fonts.
97+
WOFF2 - Use WOFF2(Compressed)instead of ttf.
98+
VF - Prefer variable font files instead of static fonts instantiated at standard weights.
99+
family: string, Filters by Webfont.family, using literal match. If not set, returns all families (repeated)
94100
sort: string, Enables sorting of the list.
95101
Allowed values
96102
SORT_UNDEFINED - No sorting specified, use the default sorting method.
@@ -99,6 +105,7 @@ <h3>Method Details</h3>
99105
POPULARITY - Sort by popularity
100106
STYLE - Sort by number of styles
101107
TRENDING - Sort by trending
108+
subset: string, Filters by Webfont.subset, if subset is found in Webfont.subsets. If not set, returns all families.
102109
x__xgafv: string, V1 error format.
103110
Allowed values
104111
1 - v1 error format
@@ -110,13 +117,21 @@ <h3>Method Details</h3>
110117
{ # Response containing the list of fonts currently served by the Google Fonts API.
111118
&quot;items&quot;: [ # The list of fonts currently served by the Google Fonts API.
112119
{ # Metadata describing a family of fonts.
120+
&quot;axes&quot;: [ # Axis for variable fonts.
121+
{ # Metadata for a variable font axis.
122+
&quot;end&quot;: 3.14, # maximum value
123+
&quot;start&quot;: 3.14, # minimum value
124+
&quot;tag&quot;: &quot;A String&quot;, # tag name.
125+
},
126+
],
113127
&quot;category&quot;: &quot;A String&quot;, # The category of the font.
114128
&quot;family&quot;: &quot;A String&quot;, # The name of the font.
115129
&quot;files&quot;: { # The font files (with all supported scripts) for each one of the available variants, as a key : value map.
116130
&quot;a_key&quot;: &quot;A String&quot;,
117131
},
118132
&quot;kind&quot;: &quot;A String&quot;, # This kind represents a webfont object in the webfonts service.
119133
&quot;lastModified&quot;: &quot;A String&quot;, # The date (format &quot;yyyy-MM-dd&quot;) the font was modified for the last time.
134+
&quot;menu&quot;: &quot;A String&quot;, # Font URL for menu subset, a subset of the font that is enough to display the font name
120135
&quot;subsets&quot;: [ # The scripts supported by the font.
121136
&quot;A String&quot;,
122137
],

googleapiclient/discovery_cache/documents/webfonts.v1.json

Lines changed: 60 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,28 @@
104104
"id": "webfonts.webfonts.list",
105105
"parameterOrder": [],
106106
"parameters": {
107+
"capability": {
108+
"description": "Controls the font urls in `Webfont.files`, by default, static ttf fonts are sent.",
109+
"enum": [
110+
"CAPABILITY_UNSPECIFIED",
111+
"WOFF2",
112+
"VF"
113+
],
114+
"enumDescriptions": [
115+
"Default means static ttf fonts.",
116+
"Use WOFF2(Compressed)instead of ttf.",
117+
"Prefer variable font files instead of static fonts instantiated at standard weights."
118+
],
119+
"location": "query",
120+
"repeated": true,
121+
"type": "string"
122+
},
123+
"family": {
124+
"description": "Filters by Webfont.family, using literal match. If not set, returns all families",
125+
"location": "query",
126+
"repeated": true,
127+
"type": "string"
128+
},
107129
"sort": {
108130
"description": "Enables sorting of the list.",
109131
"enum": [
@@ -124,6 +146,11 @@
124146
],
125147
"location": "query",
126148
"type": "string"
149+
},
150+
"subset": {
151+
"description": "Filters by Webfont.subset, if subset is found in Webfont.subsets. If not set, returns all families.",
152+
"location": "query",
153+
"type": "string"
127154
}
128155
},
129156
"path": "v1/webfonts",
@@ -134,13 +161,41 @@
134161
}
135162
}
136163
},
137-
"revision": "20230329",
164+
"revision": "20230502",
138165
"rootUrl": "https://webfonts.googleapis.com/",
139166
"schemas": {
167+
"Axis": {
168+
"description": "Metadata for a variable font axis.",
169+
"id": "Axis",
170+
"properties": {
171+
"end": {
172+
"description": "maximum value",
173+
"format": "float",
174+
"type": "number"
175+
},
176+
"start": {
177+
"description": "minimum value",
178+
"format": "float",
179+
"type": "number"
180+
},
181+
"tag": {
182+
"description": "tag name.",
183+
"type": "string"
184+
}
185+
},
186+
"type": "object"
187+
},
140188
"Webfont": {
141189
"description": "Metadata describing a family of fonts.",
142190
"id": "Webfont",
143191
"properties": {
192+
"axes": {
193+
"description": "Axis for variable fonts.",
194+
"items": {
195+
"$ref": "Axis"
196+
},
197+
"type": "array"
198+
},
144199
"category": {
145200
"description": "The category of the font.",
146201
"type": "string"
@@ -164,6 +219,10 @@
164219
"description": "The date (format \"yyyy-MM-dd\") the font was modified for the last time.",
165220
"type": "string"
166221
},
222+
"menu": {
223+
"description": "Font URL for menu subset, a subset of the font that is enough to display the font name",
224+
"type": "string"
225+
},
167226
"subsets": {
168227
"description": "The scripts supported by the font.",
169228
"items": {

0 commit comments

Comments
 (0)