Standardize loading fonts locally across pages on web app

This commit is contained in:
Debanjum
2024-11-24 15:02:14 -08:00
parent f51e0f7859
commit 6a39651ad3
8 changed files with 33 additions and 28 deletions

View File

@@ -0,0 +1,13 @@
import { Noto_Sans, Noto_Sans_Arabic } from "next/font/google";
export const noto_sans = Noto_Sans({
subsets: ["latin", "latin-ext", "cyrillic", "cyrillic-ext", "devanagari", "vietnamese"],
display: "swap",
variable: "--font-noto-sans",
});
export const noto_sans_arabic = Noto_Sans_Arabic({
subsets: ["arabic"],
display: "swap",
variable: "--font-noto-sans-arabic",
});