@next/font
Advanced tools
Comparing version 13.1.2-canary.3 to 13.1.2-canary.4
@@ -23,2 +23,5 @@ "use strict"; | ||
const fontFamilyData = font_data_json_1.default[fontFamily]; | ||
if (!fontFamilyData) { | ||
(0, utils_1.nextFontError)(`Unknown font \`${fontFamily}\``); | ||
} | ||
if (preload && !callSubsets && !(config === null || config === void 0 ? void 0 : config.subsets)) { | ||
@@ -34,5 +37,2 @@ (0, utils_1.nextFontError)(`Missing selected subsets for font \`${fontFamily}\`. Please specify subsets in the function call or in your \`next.config.js\`. Read more: https://nextjs.org/docs/messages/google-fonts-missing-subsets`); | ||
const fontWeights = fontFamilyData.weights; | ||
if (!fontWeights) { | ||
(0, utils_1.nextFontError)(`Unknown font \`${fontFamily}\``); | ||
} | ||
const fontStyles = fontFamilyData.styles; | ||
@@ -39,0 +39,0 @@ const weights = !weight |
{ | ||
"name": "@next/font", | ||
"version": "13.1.2-canary.3", | ||
"version": "13.1.2-canary.4", | ||
"repository": { | ||
@@ -5,0 +5,0 @@ "url": "vercel/next.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2452159