fix(fonts): restore Google font rendering
This commit is contained in:
+5
-17
@@ -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",
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user