79138364

Date: 2024-10-29 17:43:20
Score: 2
Natty:
Report link

In my case, I had problems with the font files. I just deleted them and downloaded them again. Maybe you should try other fonts for the test?

const notoSans = localFont({
  variable: '--font-noto-sans',
  src: [
    {
      path: './fonts/NotoSans-Light.ttf',
      weight: '300',
    },
    {
      path: './fonts/NotoSans-Regular.ttf',
      weight: '400',
    },
    {
      path: './fonts/NotoSans-Medium.ttf',
      weight: '500',
    },
    {
      path: './fonts/NotoSans-SemiBold.ttf',
      weight: '600',
    },
    {
      path: './fonts/NotoSans-Bold.ttf',
      weight: '700',
    },
  ],
});

export default function RootLayout({
  children,
}: Readonly<{
  children: ReactNode;
}>) {
  return (
    <html
      lang='en'
      className={notoSans.className}
    >
      <body>{children}</body>
    </html>
  );
}

Example of font layout

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Oleg Niziev