Skip to content
Merged
Changes from 2 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
12 changes: 9 additions & 3 deletions src/content/docs/en/reference/experimental-flags/fonts.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ display: "block"
**Default:** `undefined`
</p>

Determines the specific [range of unicode characters](https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/unicode-range) to be used from a font:
Determines the specific [range of unicode characters](https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/unicode-range) to be used from a font. It allows the browser to only download the font file if the characters specified are present on the page. This is useful for localization:

```js
unicodeRange: ["U+26"]
Expand Down Expand Up @@ -533,7 +533,8 @@ export default defineConfig({

<p>

**Type:** `number | string`
**Type:** `number | string`<br />
**Default:** `undefined`
</p>

A [font weight](https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight):
Expand All @@ -548,11 +549,14 @@ If the associated font is a [variable font](https://developer.mozilla.org/en-US/
weight: "100 900"
```

If left undefined, Astro will try to infer the value based on the first [`source`](#src).

#### style

<p>

**Type:** `"normal" | "italic" | "oblique"`
**Type:** `"normal" | "italic" | "oblique"`<br />
**Default:** `undefined`
</p>

A [font style](https://developer.mozilla.org/en-US/docs/Web/CSS/font-style):
Expand All @@ -561,6 +565,8 @@ A [font style](https://developer.mozilla.org/en-US/docs/Web/CSS/font-style):
style: "normal"
```

If left undefined, Astro will try to infer the value based on the first [`source`](#src).

#### src

<p>
Expand Down