rsnext/test/e2e/next-font/with-font-declarations-file/fonts.js
Leah 44b589e8ec
chore: use real font files for font tests (#61399)
### Why?

Turbopack throws a build error (next just logs an error).
Also probably better to test with real font files in general.



Closes PACK-2324
2024-01-31 01:22:25 +00:00

25 lines
613 B
JavaScript

import localFont from 'next/font/local'
import {
Open_Sans,
Source_Code_Pro,
Abel,
Inter,
Roboto,
} from 'next/font/google'
const openSans = Open_Sans({ subsets: ['latin'] })
const sourceCodePro = Source_Code_Pro({ display: 'swap', preload: false })
const abel = Abel({ weight: '400', display: 'optional', preload: false })
export const inter = Inter({
display: 'block',
preload: true,
subsets: ['latin'],
})
export const roboto = Roboto({ weight: '400', subsets: ['latin'] })
export const myLocalFont = localFont({
src: './my-font-roboto.woff2',
})
export { openSans, sourceCodePro, abel }