Next.js Noto_Sans_KR 폰트 적용하기

ino5·2023년 10월 10일
0

23년 개인플젝

목록 보기
13/14

layout.tsx

import './globals.css'
import type { Metadata } from 'next'
import { Noto_Sans_KR } from 'next/font/google'

const notoSansKr = Noto_Sans_KR({
  weight: ['500'],
  subsets: ['latin'],
});

export const metadata: Metadata = {
  title: 'Create Next App',
  description: 'Generated by create next app',
}

export default function RootLayout({
  children,
}: {
  children: React.ReactNode
}) {
  return (
    <html lang="en">
      <body className={notoSansKr.className}>{children}</body>
    </html>
  )
}

초기파일과의 차이

참고

https://jforj.tistory.com/338

profile
지금은 네이버 블로그만 해요... https://blog.naver.com/chero77

0개의 댓글