const fontFace:()

in src/client/lib/fonts.ts [93:111]


const fontFace: (fontFace: FontFace) => CSSObject = ({
	family,
	path,
	weight,
	style,
}) => {
	const url = getStatic(path);
	return {
		fontFamily: family,
		fontWeight: weight,
		fontStyle: style,
		// generating a string which has the url of all the font formats
		src: formats.reduce(
			(p, c, i) => `${p}${i !== 0 ? ',' : ''} url(${url}.${c}) format('${c}')`,
			'',
		),
		fontDisplay: 'swap',
	};
};