1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-07-17 16:45:31 -04:00

google fonts workaround

This commit is contained in:
2023-10-06 10:21:15 -04:00
parent 14cd879207
commit 23844c6843
5 changed files with 77 additions and 51 deletions

View File

@@ -2,6 +2,7 @@ import { Inter as InterLoader } from "next/font/google";
const Inter = InterLoader({
weight: "variable",
axes: ["slnt"], // workaround for lack of italicized Inter on Google Fonts, see: https://github.com/google/fonts/issues/2386#issuecomment-691503098
subsets: ["latin"],
display: "fallback",
preload: true,

View File

@@ -2,6 +2,7 @@ import { Source_Code_Pro as SourceCodeProLoader } from "next/font/google";
const SourceCodePro = SourceCodeProLoader({
weight: "variable",
style: ["normal", "italic"],
subsets: ["latin"],
display: "fallback",
preload: true,