diff --git a/app/layout.tsx b/app/layout.tsx index 4954e7d..559374d 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -1,30 +1,18 @@ import type { Metadata } from "next"; -import localFont from "next/font/local"; +import { Anuphan, Inter } from "next/font/google"; import "./globals.css"; import { cn } from "@/lib/utils"; import { config } from "@/lib/config"; -const inter = localFont({ - src: "../public/fonts/inter-latin.woff2", +const inter = Inter({ variable: "--font-inter", - weight: "100 900", + subsets: ["latin"], display: "swap", }); -const anuphan = localFont({ - src: [ - { - path: "../public/fonts/anuphan-thai.woff2", - weight: "100 700", - style: "normal", - }, - { - path: "../public/fonts/anuphan-latin.woff2", - weight: "100 700", - style: "normal", - }, - ], +const anuphan = Anuphan({ variable: "--font-anuphan", + subsets: ["latin", "thai"], display: "swap", }); diff --git a/public/fonts/anuphan-latin.woff2 b/public/fonts/anuphan-latin.woff2 deleted file mode 100644 index 8919cba..0000000 Binary files a/public/fonts/anuphan-latin.woff2 and /dev/null differ diff --git a/public/fonts/anuphan-thai.woff2 b/public/fonts/anuphan-thai.woff2 deleted file mode 100644 index be99a8a..0000000 Binary files a/public/fonts/anuphan-thai.woff2 and /dev/null differ diff --git a/public/fonts/inter-latin.woff2 b/public/fonts/inter-latin.woff2 deleted file mode 100644 index 91dc3e8..0000000 Binary files a/public/fonts/inter-latin.woff2 and /dev/null differ