@@ -78,7 +78,7 @@ <h2>Instance Methods</h2>
78
78
< code > < a href ="#close "> close()</ a > </ code > </ p >
79
79
< p class ="firstline "> Close httplib2 connections.</ p >
80
80
< 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 >
82
82
< p class ="firstline "> Retrieves the list of fonts currently served by the Google Fonts Developer API.</ p >
83
83
< h3 > Method Details</ h3 >
84
84
< div class ="method ">
@@ -87,10 +87,16 @@ <h3>Method Details</h3>
87
87
</ div >
88
88
89
89
< 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 >
91
91
< pre > Retrieves the list of fonts currently served by the Google Fonts Developer API.
92
92
93
93
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)
94
100
sort: string, Enables sorting of the list.
95
101
Allowed values
96
102
SORT_UNDEFINED - No sorting specified, use the default sorting method.
@@ -99,6 +105,7 @@ <h3>Method Details</h3>
99
105
POPULARITY - Sort by popularity
100
106
STYLE - Sort by number of styles
101
107
TRENDING - Sort by trending
108
+ subset: string, Filters by Webfont.subset, if subset is found in Webfont.subsets. If not set, returns all families.
102
109
x__xgafv: string, V1 error format.
103
110
Allowed values
104
111
1 - v1 error format
@@ -110,13 +117,21 @@ <h3>Method Details</h3>
110
117
{ # Response containing the list of fonts currently served by the Google Fonts API.
111
118
"items": [ # The list of fonts currently served by the Google Fonts API.
112
119
{ # Metadata describing a family of fonts.
120
+ "axes": [ # Axis for variable fonts.
121
+ { # Metadata for a variable font axis.
122
+ "end": 3.14, # maximum value
123
+ "start": 3.14, # minimum value
124
+ "tag": "A String", # tag name.
125
+ },
126
+ ],
113
127
"category": "A String", # The category of the font.
114
128
"family": "A String", # The name of the font.
115
129
"files": { # The font files (with all supported scripts) for each one of the available variants, as a key : value map.
116
130
"a_key": "A String",
117
131
},
118
132
"kind": "A String", # This kind represents a webfont object in the webfonts service.
119
133
"lastModified": "A String", # The date (format "yyyy-MM-dd") the font was modified for the last time.
134
+ "menu": "A String", # Font URL for menu subset, a subset of the font that is enough to display the font name
120
135
"subsets": [ # The scripts supported by the font.
121
136
"A String",
122
137
],
0 commit comments