-
Notifications
You must be signed in to change notification settings - Fork 26.9k
Commit
### 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
- Loading branch information
There are no files selected for viewing
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
import localFont from '@next/font/local' | ||
|
||
export const font = localFont({ src: './font.woff2' }) | ||
export const font = localFont({ src: './font-noto-sans.woff2' }) |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
import localFont from 'next/font/local' | ||
|
||
export const font = localFont({ src: './font.woff2' }) | ||
export const font = localFont({ src: './font-noto-sans.woff2' }) |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,25 @@ | ||
import localFont from 'next/font/local' | ||
|
||
export const font1 = localFont({ src: './font1.woff2', variable: '--font-1' }) | ||
export const font2 = localFont({ src: 'font2.woff2', variable: '--font-2' }) | ||
export const font1 = localFont({ | ||
src: './font1_roboto.woff2', | ||
variable: '--font-1', | ||
}) | ||
export const font2 = localFont({ | ||
src: 'font2_roboto-mono-regular.woff2', | ||
variable: '--font-2', | ||
}) | ||
export const font3 = localFont({ | ||
src: './font3.woff2', | ||
src: './font3_inter-regular.woff2', | ||
weight: '900', | ||
style: 'italic', | ||
}) | ||
export const font4 = localFont({ src: './font4.woff2', weight: '100' }) | ||
export const font4 = localFont({ | ||
src: './font4_workbench-regular.woff2', | ||
weight: '100', | ||
}) | ||
export const font5 = localFont({ | ||
src: './test/font5.woff2', | ||
src: './test/font5_open-sans-regular.woff2', | ||
style: 'italic', | ||
preload: false, | ||
}) | ||
export const font6 = localFont({ src: 'test/font6.woff2' }) | ||
export const font6 = localFont({ src: 'test/font6_single-day-regular.woff2' }) |
This file was deleted.
This file was deleted.