I need to use fonts in base64 and I was thinking to do something like this:
import { Font } from './Font';
import localFont from 'next/font/local'
const myFont = localFont({
src: `data:font/woff2;base64,${Font} `,
display: 'swap',
})
Font.js is just a export of the base64 string.
The error Font loader values must be explicitly written literals.
Any ideas?