From fb08403d79618ce11b08743bf3bb09dbfdcfd457 Mon Sep 17 00:00:00 2001 From: vercel-release-bot Date: Thu, 8 Aug 2024 00:11:08 +0000 Subject: [PATCH 1/2] update/fonts-data-1723075867139 --- packages/font/src/google/font-data.json | 24 ++++++++++----- packages/font/src/google/index.ts | 41 ++++++++++++++++++++++--- 2 files changed, 54 insertions(+), 11 deletions(-) diff --git a/packages/font/src/google/font-data.json b/packages/font/src/google/font-data.json index 0b2bfeb42dafd..59c7ec6a8db07 100644 --- a/packages/font/src/google/font-data.json +++ b/packages/font/src/google/font-data.json @@ -2043,7 +2043,7 @@ "defaultValue": 400 } ], - "subsets": ["cyrillic-ext", "latin", "latin-ext", "vietnamese"] + "subsets": ["latin", "latin-ext", "vietnamese"] }, "Bruno Ace": { "weights": ["400"], @@ -5207,13 +5207,13 @@ "900", "variable" ], - "styles": ["normal"], + "styles": ["normal", "italic"], "axes": [ { - "tag": "slnt", - "min": -10, - "max": 0, - "defaultValue": 0 + "tag": "opsz", + "min": 14, + "max": 32, + "defaultValue": 14 }, { "tag": "wght", @@ -10999,7 +10999,7 @@ "Philosopher": { "weights": ["400", "700"], "styles": ["normal", "italic"], - "subsets": ["cyrillic", "cyrillic-ext", "latin", "vietnamese"] + "subsets": ["cyrillic", "cyrillic-ext", "latin", "latin-ext", "vietnamese"] }, "Phudu": { "weights": ["300", "400", "500", "600", "700", "800", "900", "variable"], @@ -13276,6 +13276,11 @@ "styles": ["normal"], "subsets": ["latin", "latin-ext"] }, + "Sankofa Display": { + "weights": ["400"], + "styles": ["normal"], + "subsets": ["latin", "latin-ext", "vietnamese"] + }, "Sansita": { "weights": ["400", "700", "800", "900"], "styles": ["normal", "italic"], @@ -15533,6 +15538,11 @@ "styles": ["normal"], "subsets": ["latin"] }, + "Zain": { + "weights": ["200", "300", "400", "700", "800", "900"], + "styles": ["normal"], + "subsets": ["arabic", "latin"] + }, "Zen Antique": { "weights": ["400"], "styles": ["normal"], diff --git a/packages/font/src/google/index.ts b/packages/font/src/google/index.ts index 6dec69bdd7f1e..e82201fc7d996 100644 --- a/packages/font/src/google/index.ts +++ b/packages/font/src/google/index.ts @@ -3459,7 +3459,7 @@ export declare function Bricolage_Grotesque< preload?: boolean fallback?: string[] adjustFontFallback?: boolean - subsets?: Array<'cyrillic-ext' | 'latin' | 'latin-ext' | 'vietnamese'> + subsets?: Array<'latin' | 'latin-ext' | 'vietnamese'> axes?: ('opsz' | 'wdth')[] }): T extends undefined ? NextFont : NextFontWithVariable export declare function Bruno_Ace< @@ -9266,7 +9266,7 @@ export declare function Inter< | Array< '100' | '200' | '300' | '400' | '500' | '600' | '700' | '800' | '900' > - style?: 'normal' | Array<'normal'> + style?: 'normal' | 'italic' | Array<'normal' | 'italic'> display?: Display variable?: T preload?: boolean @@ -9281,7 +9281,7 @@ export declare function Inter< | 'latin-ext' | 'vietnamese' > - axes?: 'slnt'[] + axes?: 'opsz'[] }): T extends undefined ? NextFont : NextFontWithVariable export declare function Inter_Tight< T extends CssVariable | undefined = undefined, @@ -18604,7 +18604,9 @@ export declare function Philosopher< preload?: boolean fallback?: string[] adjustFontFallback?: boolean - subsets?: Array<'cyrillic' | 'cyrillic-ext' | 'latin' | 'vietnamese'> + subsets?: Array< + 'cyrillic' | 'cyrillic-ext' | 'latin' | 'latin-ext' | 'vietnamese' + > }): T extends undefined ? NextFont : NextFontWithVariable export declare function Phudu< T extends CssVariable | undefined = undefined, @@ -22146,6 +22148,18 @@ export declare function Sancreek< adjustFontFallback?: boolean subsets?: Array<'latin' | 'latin-ext'> }): T extends undefined ? NextFont : NextFontWithVariable +export declare function Sankofa_Display< + T extends CssVariable | undefined = undefined, +>(options: { + weight: '400' | Array<'400'> + style?: 'normal' | Array<'normal'> + display?: Display + variable?: T + preload?: boolean + fallback?: string[] + adjustFontFallback?: boolean + subsets?: Array<'latin' | 'latin-ext' | 'vietnamese'> +}): T extends undefined ? NextFont : NextFontWithVariable export declare function Sansita< T extends CssVariable | undefined = undefined, >(options: { @@ -26118,6 +26132,25 @@ export declare function ZCOOL_XiaoWei< adjustFontFallback?: boolean subsets?: Array<'latin'> }): T extends undefined ? NextFont : NextFontWithVariable +export declare function Zain< + T extends CssVariable | undefined = undefined, +>(options: { + weight: + | '200' + | '300' + | '400' + | '700' + | '800' + | '900' + | Array<'200' | '300' | '400' | '700' | '800' | '900'> + style?: 'normal' | Array<'normal'> + display?: Display + variable?: T + preload?: boolean + fallback?: string[] + adjustFontFallback?: boolean + subsets?: Array<'arabic' | 'latin'> +}): T extends undefined ? NextFont : NextFontWithVariable export declare function Zen_Antique< T extends CssVariable | undefined = undefined, >(options: { From 6365cd442e325d9972fd951beabfe406dc43ad20 Mon Sep 17 00:00:00 2001 From: samcx Date: Thu, 8 Aug 2024 14:41:59 -0700 Subject: [PATCH 2/2] test(font): update getFontAxes test --- packages/font/src/google/get-font-axes.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/font/src/google/get-font-axes.test.ts b/packages/font/src/google/get-font-axes.test.ts index 2991c11772e8a..2ac2507f4d240 100644 --- a/packages/font/src/google/get-font-axes.test.ts +++ b/packages/font/src/google/get-font-axes.test.ts @@ -13,7 +13,7 @@ describe('getFontAxes errors', () => { expect(() => getFontAxes('Inter', ['variable'], [], true as any)) .toThrowErrorMatchingInlineSnapshot(` "Invalid axes value for font \`Inter\`, expected an array of axes. - Available axes: \`slnt\`" + Available axes: \`opsz\`" `) })