Skip to content

Commit f916ad2

Browse files
feat(fonts): export googleicons provider (withastro#13035)
Co-authored-by: Chris Swithinbank <[email protected]>
1 parent 2b9e8c5 commit f916ad2

File tree

1 file changed

+23
-0
lines changed
  • src/content/docs/en/reference/experimental-flags

1 file changed

+23
-0
lines changed

src/content/docs/en/reference/experimental-flags/fonts.mdx

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ The following providers have built-in support:
161161
- [Fontshare](https://www.fontshare.com/)
162162
- [Fontsource](https://fontsource.org/)
163163
- [Google](https://fonts.google.com/)
164+
- [Google Icons](https://fonts.google.com/icons)
164165

165166
To use a built-in remote provider, configure `provider` with the appropriate value for your chosen font provider:
166167

@@ -218,6 +219,28 @@ provider: fontProviders.google({
218219

219220
</TabItem>
220221

222+
<TabItem label="Google Icons">
223+
224+
<p>
225+
<Since v="5.16.9" />
226+
</p>
227+
228+
```js
229+
provider: fontProviders.googleicons()
230+
```
231+
232+
Additionally, the `googleicons()` font provider accepts all options available for the [unifont Google Icons options](https://github.com/unjs/unifont/#options-2):
233+
234+
```js
235+
provider: fontProviders.googleicons({
236+
glyphs: {
237+
"Material Symbols Outlined": ["arrow_right", "favorite", "arrow_drop_down"]
238+
}
239+
})
240+
```
241+
242+
</TabItem>
243+
221244
</Tabs>
222245

223246
## Usage examples

0 commit comments

Comments
 (0)