apply pretnedard font
This commit is contained in:
BIN
public/fonts/pretendard/PretendardVariable.woff2
Normal file
BIN
public/fonts/pretendard/PretendardVariable.woff2
Normal file
Binary file not shown.
8
src/app/fonts.ts
Normal file
8
src/app/fonts.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
import localFont from "next/font/local";
|
||||
|
||||
export const pretendard = localFont({
|
||||
src: "../../public/fonts/pretendard/PretendardVariable.woff2",
|
||||
weight: "45 920", // variable 폰트 범위
|
||||
variable: "--font-pretendard", // CSS 변수 이름
|
||||
display: "swap",
|
||||
});
|
||||
@@ -1,5 +1,6 @@
|
||||
import type { Metadata } from "next";
|
||||
import "./globals.css";
|
||||
import { pretendard } from "./fonts";
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: "XRLMS",
|
||||
@@ -8,13 +9,13 @@ export const metadata: Metadata = {
|
||||
|
||||
export default function RootLayout({
|
||||
children,
|
||||
}: Readonly<{
|
||||
children: React.ReactNode;
|
||||
}>) {
|
||||
}: Readonly<{ children: React.ReactNode; }>) {
|
||||
return (
|
||||
<html lang="en">
|
||||
<body>
|
||||
<body className={pretendard.className}>
|
||||
text-pretendard
|
||||
{children}
|
||||
TEXT
|
||||
</body>
|
||||
</html>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user