Skip to content

Commit a972206

Browse files
i18n(fr): update experimental-flags/fonts.mdx
See withastro#11484 and withastro#11491
1 parent c612c40 commit a972206

File tree

1 file changed

+12
-2
lines changed
  • src/content/docs/fr/reference/experimental-flags

1 file changed

+12
-2
lines changed

Diff for: src/content/docs/fr/reference/experimental-flags/fonts.mdx

+12-2
Original file line numberDiff line numberDiff line change
@@ -116,10 +116,10 @@ body {
116116

117117
<TabItem label="Tailwind CSS 4.0">
118118

119-
```css title="src/styles/global.css" ins={4}
119+
```css title="src/styles/global.css" ins={4} ins="inline"
120120
@import 'tailwindcss';
121121

122-
@theme {
122+
@theme inline {
123123
--font-sans: var(--font-roboto);
124124
}
125125
```
@@ -200,6 +200,16 @@ provider: fontProviders.fontsource()
200200
provider: fontProviders.google()
201201
```
202202

203+
En complément, le fournisseur de polices `google()` accepte toutes les options disponibles dans l'interface [`ProviderOption` d'unifont pour Google](https://github.com/unjs/unifont/blob/main/src/providers/google.ts#L10-L26) :
204+
205+
```js
206+
provider: fontProviders.google({
207+
glyphs: {
208+
Roboto: ["a"]
209+
}
210+
})
211+
```
212+
203213
</TabItem>
204214

205215
</Tabs>

0 commit comments

Comments
 (0)