web-humas-fe/config/fonts.ts

38 lines
833 B
TypeScript
Raw Permalink Normal View History

2025-12-11 04:40:20 +00:00
// import { DM_Sans, Fira_Code as FontMono } from "next/font/google";
import localFont from "next/font/local";
2024-01-05 06:57:30 +00:00
2025-12-11 04:40:20 +00:00
export const fontSans = localFont({
src: [
{
path: "../public/fonts/inter/Inter_24pt-Regular.ttf",
weight: "400",
style: "normal",
},
{
path: "../public/fonts/inter/Inter_24pt-Medium.ttf",
weight: "500",
style: "normal",
},
{
path: "../public/fonts/inter/Inter_24pt-Bold.ttf",
weight: "700",
style: "normal",
},
],
display: "swap",
});
// export const fontSans = FontSans({
// subsets: ["latin"],
// variable: "--font-sans",
// })
2024-01-05 06:57:30 +00:00
2025-12-11 04:40:20 +00:00
// export const fontMono = FontMono({
// subsets: ["latin"],
// variable: "--font-mono",
// });
2024-01-29 06:38:26 +00:00
2025-12-11 04:40:20 +00:00
// export const dmSans = DM_Sans({
// subsets: ["latin"],
// variable: "--font-dm-sans",
// });