Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions src/content/docs/en/reference/experimental-flags/fonts.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ The following providers have built-in support:
- [Fontshare](https://www.fontshare.com/)
- [Fontsource](https://fontsource.org/)
- [Google](https://fonts.google.com/)
- [Google Icons](https://fonts.google.com/icons)

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

Expand Down Expand Up @@ -218,6 +219,28 @@ provider: fontProviders.google({

</TabItem>

<TabItem label="Google Icons">

<p>
<Since v="5.16.9" />
</p>

```js
provider: fontProviders.googleicons()
```

Additionally, the `googleicons()` font provider accepts all options available for the [unifont Google Icons options](https://github.com/unjs/unifont/#options-2):

```js
provider: fontProviders.googleicons({
glyphs: {
"Material Symbols Outlined": ["arrow_right", "favorite", "arrow_drop_down"]
}
})
```

</TabItem>

</Tabs>

## Usage examples
Expand Down