canina/frontend/application/lib/fonts.ts
parsa aghaei 3aaea0062b
Some checks failed
Deploy Canina / deploy (push) Successful in 2m14s
E2E Playwright Tests / Run Full E2E & Security Suites (push) Failing after 6s
perf: optimize font payloads, enable responsive image optimization for uploads, and set high priority on top hero/product images
2026-09-02 15:54:12 +03:30

24 lines
561 B
TypeScript

import { Lalezar } from 'next/font/google';
import localFont from 'next/font/local';
export const vazirmatn = localFont({
src: [
{
path: '../public/fonts/vazirmatn-v33.003/fonts/webfonts/Vazirmatn[wght].woff2',
style: 'normal',
},
],
variable: '--font-vazir',
display: 'swap',
fallback: ['system-ui', '-apple-system', 'Segoe UI', 'Roboto', 'Arial', 'sans-serif'],
preload: true,
});
export const lalezar = Lalezar({
weight: '400',
subsets: ['arabic'],
variable: '--font-lalezar',
display: 'swap',
preload: false,
});