npm install @next/font
로 설치 후
import { Noto_Sans_KR } from "@next/font/google";
import Head from "next/head";
const notoSansKR = Noto_Sans_KR({
weight: ["400", "700"],
subsets: [],
});
<Head>
<style>{`
html {
font-family: ${notoSansKR.style.fontFamily}, sans-serif;
}
`}</style>
</Head>
'program > next.js' 카테고리의 다른 글
[Next.js] 빌드 (0) | 2024.01.27 |
---|---|
[next.js] project 세팅 방법 (0) | 2024.01.27 |