Skip to content

Commit

Permalink
feat(webfonts): update the api
Browse files Browse the repository at this point in the history
#### 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)
  • Loading branch information
yoshi-automation committed May 24, 2023
1 parent 56c8a0c commit 789ea52
Show file tree
Hide file tree
Showing 2 changed files with 77 additions and 3 deletions.
19 changes: 17 additions & 2 deletions docs/dyn/webfonts_v1.webfonts.html
Expand Up @@ -78,7 +78,7 @@ <h2>Instance Methods</h2>
<code><a href="#close">close()</a></code></p>
<p class="firstline">Close httplib2 connections.</p>
<p class="toc_element">
<code><a href="#list">list(sort=None, x__xgafv=None)</a></code></p>
<code><a href="#list">list(capability=None, family=None, sort=None, subset=None, x__xgafv=None)</a></code></p>
<p class="firstline">Retrieves the list of fonts currently served by the Google Fonts Developer API.</p>
<h3>Method Details</h3>
<div class="method">
Expand All @@ -87,10 +87,16 @@ <h3>Method Details</h3>
</div>

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

Args:
capability: string, Controls the font urls in `Webfont.files`, by default, static ttf fonts are sent. (repeated)
Allowed values
CAPABILITY_UNSPECIFIED - Default means static ttf fonts.
WOFF2 - Use WOFF2(Compressed)instead of ttf.
VF - Prefer variable font files instead of static fonts instantiated at standard weights.
family: string, Filters by Webfont.family, using literal match. If not set, returns all families (repeated)
sort: string, Enables sorting of the list.
Allowed values
SORT_UNDEFINED - No sorting specified, use the default sorting method.
Expand All @@ -99,6 +105,7 @@ <h3>Method Details</h3>
POPULARITY - Sort by popularity
STYLE - Sort by number of styles
TRENDING - Sort by trending
subset: string, Filters by Webfont.subset, if subset is found in Webfont.subsets. If not set, returns all families.
x__xgafv: string, V1 error format.
Allowed values
1 - v1 error format
Expand All @@ -110,13 +117,21 @@ <h3>Method Details</h3>
{ # Response containing the list of fonts currently served by the Google Fonts API.
&quot;items&quot;: [ # The list of fonts currently served by the Google Fonts API.
{ # Metadata describing a family of fonts.
&quot;axes&quot;: [ # Axis for variable fonts.
{ # Metadata for a variable font axis.
&quot;end&quot;: 3.14, # maximum value
&quot;start&quot;: 3.14, # minimum value
&quot;tag&quot;: &quot;A String&quot;, # tag name.
},
],
&quot;category&quot;: &quot;A String&quot;, # The category of the font.
&quot;family&quot;: &quot;A String&quot;, # The name of the font.
&quot;files&quot;: { # The font files (with all supported scripts) for each one of the available variants, as a key : value map.
&quot;a_key&quot;: &quot;A String&quot;,
},
&quot;kind&quot;: &quot;A String&quot;, # This kind represents a webfont object in the webfonts service.
&quot;lastModified&quot;: &quot;A String&quot;, # The date (format &quot;yyyy-MM-dd&quot;) the font was modified for the last time.
&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
&quot;subsets&quot;: [ # The scripts supported by the font.
&quot;A String&quot;,
],
Expand Down
61 changes: 60 additions & 1 deletion googleapiclient/discovery_cache/documents/webfonts.v1.json
Expand Up @@ -104,6 +104,28 @@
"id": "webfonts.webfonts.list",
"parameterOrder": [],
"parameters": {
"capability": {
"description": "Controls the font urls in `Webfont.files`, by default, static ttf fonts are sent.",
"enum": [
"CAPABILITY_UNSPECIFIED",
"WOFF2",
"VF"
],
"enumDescriptions": [
"Default means static ttf fonts.",
"Use WOFF2(Compressed)instead of ttf.",
"Prefer variable font files instead of static fonts instantiated at standard weights."
],
"location": "query",
"repeated": true,
"type": "string"
},
"family": {
"description": "Filters by Webfont.family, using literal match. If not set, returns all families",
"location": "query",
"repeated": true,
"type": "string"
},
"sort": {
"description": "Enables sorting of the list.",
"enum": [
Expand All @@ -124,6 +146,11 @@
],
"location": "query",
"type": "string"
},
"subset": {
"description": "Filters by Webfont.subset, if subset is found in Webfont.subsets. If not set, returns all families.",
"location": "query",
"type": "string"
}
},
"path": "v1/webfonts",
Expand All @@ -134,13 +161,41 @@
}
}
},
"revision": "20230329",
"revision": "20230502",
"rootUrl": "https://webfonts.googleapis.com/",
"schemas": {
"Axis": {
"description": "Metadata for a variable font axis.",
"id": "Axis",
"properties": {
"end": {
"description": "maximum value",
"format": "float",
"type": "number"
},
"start": {
"description": "minimum value",
"format": "float",
"type": "number"
},
"tag": {
"description": "tag name.",
"type": "string"
}
},
"type": "object"
},
"Webfont": {
"description": "Metadata describing a family of fonts.",
"id": "Webfont",
"properties": {
"axes": {
"description": "Axis for variable fonts.",
"items": {
"$ref": "Axis"
},
"type": "array"
},
"category": {
"description": "The category of the font.",
"type": "string"
Expand All @@ -164,6 +219,10 @@
"description": "The date (format \"yyyy-MM-dd\") the font was modified for the last time.",
"type": "string"
},
"menu": {
"description": "Font URL for menu subset, a subset of the font that is enough to display the font name",
"type": "string"
},
"subsets": {
"description": "The scripts supported by the font.",
"items": {
Expand Down

0 comments on commit 789ea52

Please sign in to comment.