Failed to find font override values for font `Cal Sans` when attempting to use Google fonts
Unanswered
Anay-208 posted this in #help-forum
Anay-208OP
I haven't been up to date with Next.js in a long time, so for context, I'm trying to use Cal Sans font in my nextjs application. Code:
However, this error is preventing me from using this specific font.. What can to get the font working
import { Geist, Geist_Mono, Cal_Sans } from "next/font/google";
//...
const calSans = Cal_Sans({
weight: ["400"],
variable: "--font-cal-sans",
subsets: ["latin"],
});
//...
export default function RootLayout({
children,
}: Readonly<{
children: React.ReactNode;
}>) {
return (
<html lang="en">
<body
className={`${geistSans.variable} ${geistMono.variable} ${calSans.variable} antialiased`}
>
{children}
</body>
</html>
);
}However, this error is preventing me from using this specific font.. What can to get the font working