1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2026-06-23 04:55:59 -04:00

clean up next fonts

This commit is contained in:
2022-10-30 17:24:03 -04:00
parent 6520e6fa2e
commit b58a138ce2
7 changed files with 209 additions and 209 deletions
+30
View File
@@ -0,0 +1,30 @@
import {
Inter as InterLoader,
Roboto_Mono as RobotoMonoLoader,
Comic_Neue as ComicNeueLoader,
} from "@next/font/google";
// note: subsets are set to 'latin' globally in next.config.js
// https://beta.nextjs.org/docs/optimizing/fonts#specifying-a-subset
export const Inter = InterLoader({
weight: "variable",
display: "fallback",
preload: true,
});
export const RobotoMono = RobotoMonoLoader({
weight: "variable",
display: "fallback",
preload: true,
});
// only for use in pages/previously.tsx (and tree-shaken out everywhere else in production)
export const ComicNeue = ComicNeueLoader({
weight: ["400", "700"],
style: ["normal", "italic"],
display: "swap",
fallback: ["'Comic Sans MS'", "'Comic Sans'"],
adjustFontFallback: false,
preload: false,
});