From be170d6dc849fccae338a8d992de3164b73d3c6c Mon Sep 17 00:00:00 2001 From: Florian Lefebvre Date: Mon, 8 Jun 2026 15:39:16 +0200 Subject: [PATCH 1/2] feat(fonts): include subset field in fontData from astro:assets --- .../docs/en/reference/modules/astro-assets.mdx | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/content/docs/en/reference/modules/astro-assets.mdx b/src/content/docs/en/reference/modules/astro-assets.mdx index 7c3fd7674a516..1f7b03c593412 100644 --- a/src/content/docs/en/reference/modules/astro-assets.mdx +++ b/src/content/docs/en/reference/modules/astro-assets.mdx @@ -788,7 +788,7 @@ Describes the [properties of a remote image](#image-). This ensures that when [`

-**Type:** `{ src: Array<{ url: string; format?: string; tech?: string }>; weight?: string; style?: string; }`
+**Type:** `{ src: Array<{ url: string; format?: string; tech?: string }>; weight?: string; style?: string; subset?: string; }`

@@ -821,6 +821,16 @@ Specifies the font weight (e.g. `400`, `600`). Specifies the font style (e.g. `normal`, `italic`). +### `FontData.subset` + +

+ +**Type:** `string` + +

+ +Specifies the font subset (e.g. `latin`, `cyrillic`). + ## Imports from `astro/assets` The following helpers are imported from the regular assets module: From 4d0eb7c76c42232cf5f25955b11adbf56255f30c Mon Sep 17 00:00:00 2001 From: Florian Lefebvre Date: Mon, 8 Jun 2026 16:03:15 +0200 Subject: [PATCH 2/2] Apply suggestion from @florian-lefebvre --- src/content/docs/en/reference/modules/astro-assets.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/docs/en/reference/modules/astro-assets.mdx b/src/content/docs/en/reference/modules/astro-assets.mdx index 1f7b03c593412..6af95d9fa4d5c 100644 --- a/src/content/docs/en/reference/modules/astro-assets.mdx +++ b/src/content/docs/en/reference/modules/astro-assets.mdx @@ -821,7 +821,7 @@ Specifies the font weight (e.g. `400`, `600`). Specifies the font style (e.g. `normal`, `italic`). -### `FontData.subset` +#### `FontData.subset`