first commit
This commit is contained in:
48
config/font.config.ts
Normal file
48
config/font.config.ts
Normal file
@@ -0,0 +1,48 @@
|
||||
import localFont from "next/font/local";
|
||||
|
||||
export const FontVazir = localFont({
|
||||
src: [
|
||||
{
|
||||
path: "../fonts/vazir/Vazirmatn-Thin.woff2",
|
||||
weight: "100",
|
||||
style: "normal",
|
||||
},
|
||||
{
|
||||
path: "../fonts/vazir/Vazirmatn-ExtraLight.woff2",
|
||||
weight: "200",
|
||||
style: "normal",
|
||||
},
|
||||
{
|
||||
path: "../fonts/vazir/Vazirmatn-Light.woff2",
|
||||
weight: "300",
|
||||
style: "normal",
|
||||
},
|
||||
{
|
||||
path: "../fonts/vazir/Vazirmatn-Regular.woff2",
|
||||
weight: "400",
|
||||
style: "normal",
|
||||
},
|
||||
{
|
||||
path: "../fonts/vazir/Vazirmatn-Medium.woff2",
|
||||
weight: "500",
|
||||
style: "normal",
|
||||
},
|
||||
{
|
||||
path: "../fonts/vazir/Vazirmatn-SemiBold.woff2",
|
||||
weight: "600",
|
||||
style: "normal",
|
||||
},
|
||||
{
|
||||
path: "../fonts/vazir/Vazirmatn-Bold.woff2",
|
||||
weight: "700",
|
||||
style: "normal",
|
||||
},
|
||||
{
|
||||
path: "../fonts/vazir/Vazirmatn-ExtraBold.woff2",
|
||||
weight: "800",
|
||||
style: "normal",
|
||||
},
|
||||
],
|
||||
variable: "--font-vazir", // اگر خواستی متغیر CSS بسازی برای Tailwind یا CSS مدول
|
||||
display: "swap", // بهترین گزینه برای نمایش فونت
|
||||
});
|
||||
Reference in New Issue
Block a user