Debian Codegraph @

docs/dyn/webfonts_v1.webfonts.html

raw
1 <html><body>
2 <style>
3
4 body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13 }
14
15 body {
16 font-size: 13px;
17 padding: 1em;
18 }
19
20 h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23 }
24
25 h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28 }
29
30 h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34 }
35
36 pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39 }
40
41 pre {
42 margin-top: 0.5em;
43 }
44
45 h1, h2, h3, p {
46 font-family: Arial, sans serif;
47 }
48
49 h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51 }
52
53 .toc_element {
54 margin-top: 0.5em;
55 }
56
57 .firstline {
58 margin-left: 2 em;
59 }
60
61 .method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66 }
67
68 .details {
69 font-weight: bold;
70 font-size: 14px;
71 }
72
73 </style>
74
75 <h1><a href="webfonts_v1.html">Web Fonts Developer API</a> . <a href="webfonts_v1.webfonts.html">webfonts</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="#close">close()</a></code></p>
79 <p class="firstline">Close httplib2 connections.</p>
80 <p class="toc_element">
81 <code><a href="#list">list(capability=None, category=None, family=None, sort=None, subset=None, x__xgafv=None)</a></code></p>
82 <p class="firstline">Retrieves the list of fonts currently served by the Google Fonts Developer API.</p>
83 <h3>Method Details</h3>
84 <div class="method">
85 <code class="details" id="close">close()</code>
86 <pre>Close httplib2 connections.</pre>
87 </div>
88
89 <div class="method">
90 <code class="details" id="list">list(capability=None, category=None, family=None, sort=None, subset=None, x__xgafv=None)</code>
91 <pre>Retrieves the list of fonts currently served by the Google Fonts Developer API.
92
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_TAGS - Include tags that apply to the entire family in the response.
100 category: string, Filters by Webfont.category, if category is found in Webfont.categories. If not set, returns all families.
101 family: string, Filters by Webfont.family, using literal match. If not set, returns all families (repeated)
102 sort: string, Enables sorting of the list.
103 Allowed values
104 SORT_UNDEFINED - No sorting specified, use the default sorting method.
105 ALPHA - Sort alphabetically
106 DATE - Sort by date added
107 POPULARITY - Sort by popularity
108 STYLE - Sort by number of styles
109 TRENDING - Sort by trending
110 subset: string, Filters by Webfont.subset, if subset is found in Webfont.subsets. If not set, returns all families.
111 x__xgafv: string, V1 error format.
112 Allowed values
113 1 - v1 error format
114 2 - v2 error format
115
116 Returns:
117 An object of the form:
118
119 { # Response containing the list of fonts currently served by the Google Fonts API.
120 &quot;items&quot;: [ # The list of fonts currently served by the Google Fonts API.
121 { # Metadata describing a family of fonts.
122 &quot;axes&quot;: [ # Axis for variable fonts.
123 { # Metadata for a variable font axis.
124 &quot;end&quot;: 3.14, # maximum value
125 &quot;start&quot;: 3.14, # minimum value
126 &quot;tag&quot;: &quot;A String&quot;, # tag name.
127 },
128 ],
129 &quot;category&quot;: &quot;A String&quot;, # The category of the font.
130 &quot;colorCapabilities&quot;: [ # The color format(s) available for this family.
131 &quot;A String&quot;,
132 ],
133 &quot;family&quot;: &quot;A String&quot;, # The name of the font.
134 &quot;files&quot;: { # The font files (with all supported scripts) for each one of the available variants, as a key : value map.
135 &quot;a_key&quot;: &quot;A String&quot;,
136 },
137 &quot;kind&quot;: &quot;A String&quot;, # This kind represents a webfont object in the webfonts service.
138 &quot;lastModified&quot;: &quot;A String&quot;, # The date (format &quot;yyyy-MM-dd&quot;) the font was modified for the last time.
139 &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
140 &quot;subsets&quot;: [ # The scripts supported by the font.
141 &quot;A String&quot;,
142 ],
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 ],
149 &quot;variants&quot;: [ # The available variants for the font.
150 &quot;A String&quot;,
151 ],
152 &quot;version&quot;: &quot;A String&quot;, # The font version.
153 },
154 ],
155 &quot;kind&quot;: &quot;A String&quot;, # This kind represents a list of webfont objects in the webfonts service.
156 }</pre>
157 </div>
158
159 </body></html>