Skip to content

Commit 920718b

Browse files
fonts: clarify adobe id loading (#12730)
Co-authored-by: Sarah Rainsberger <[email protected]>
1 parent e65d33f commit 920718b

File tree

1 file changed

+6
-4
lines changed
  • src/content/docs/en/reference/experimental-flags

1 file changed

+6
-4
lines changed

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

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,9 @@ body {
152152

153153
## Available remote font providers
154154

155-
Astro re-exports most [unifont](https://github.com/unjs/unifont/) providers. The following have built-in support:
155+
Astro re-exports most [unifont](https://github.com/unjs/unifont/) providers. You can also [make a custom Astro font provider](#build-your-own-font-provider) for any unifont provider.
156+
157+
The following providers have built-in support:
156158

157159
- [Adobe](https://fonts.adobe.com/)
158160
- [Bunny](https://fonts.bunny.net/)
@@ -167,9 +169,11 @@ To use a built-in remote provider, configure `provider` with the appropriate val
167169
<TabItem label="Adobe">
168170

169171
```js
170-
provider: fontProviders.adobe({ id: process.env.ADOBE_ID })
172+
provider: fontProviders.adobe({ id: 'your-id' })
171173
```
172174

175+
Pass the Adobe font provider an ID loaded as an [environment variable in your Astro config file](/en/guides/environment-variables/#in-the-astro-config-file).
176+
173177
</TabItem>
174178

175179
<TabItem label="Bunny">
@@ -216,8 +220,6 @@ provider: fontProviders.google({
216220

217221
</Tabs>
218222

219-
You can also [make a custom Astro font provider](#build-your-own-font-provider) for any unifont provider.
220-
221223
## Usage examples
222224

223225
```js title="astro.config.mjs"

0 commit comments

Comments
 (0)