fix(fonts): restore Google font rendering

This commit is contained in:
2026-08-09 22:47:06 +07:00 Unverified
parent 1294473cf7
commit cbb40b665c
4 changed files with 5 additions and 17 deletions
+5 -17
View File
@@ -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",
});
Binary file not shown.
Binary file not shown.
Binary file not shown.