24 lines
819 B
TypeScript
24 lines
819 B
TypeScript
import localFont from 'next/font/local';
|
|
|
|
// Variable fonts from island. next/font self-hosts them, preloads the critical face,
|
|
// and adds a size-adjusted fallback so the swap doesn't shift the layout.
|
|
|
|
/** Yekan Bakh with Persian digit shapes: every UI text. */
|
|
export const yekanBakh = localFont({
|
|
src: '../../../../packages/island/src/fonts/yekan-bakh-fa-num-vf.woff2',
|
|
variable: '--font-yekan-bakh',
|
|
weight: '100 1000',
|
|
display: 'swap',
|
|
adjustFontFallback: 'Arial',
|
|
});
|
|
|
|
/** Yekan Bakh with Latin digits: شبا and other bank codes. Loaded only where used. */
|
|
export const yekanBakhLatin = localFont({
|
|
src: '../../../../packages/island/src/fonts/yekan-bakh-vf.woff2',
|
|
variable: '--font-yekan-bakh-latin',
|
|
weight: '100 1000',
|
|
display: 'swap',
|
|
preload: false,
|
|
adjustFontFallback: 'Arial',
|
|
});
|