Frontend/Next.js2024. 9. 7. 15:49[Next.js] next/font 적용방법 [9/7 study]
next/font 적용방법 1. @next/font Next.js 에서는 @next/font란 라이브러리를 설치하여 구글 폰트를 자유롭게 사용할 수 있습니다npm i @next/fontyarn add @next/font import { Jua } from "@next/font/google";const jua = Jua({ subsets: ["latin"], weight: ["400"] });export default function RootLayout({ children,}: { children: React.ReactNode;}) { return ( {children} );} 라이브러리에서 google font에 등록된 폰트를 가져와서 보여주는것이 ..