mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-07-17 17:05:32 -04:00
seize back control over geist font loaders
This commit is contained in:
@@ -1,3 +1,22 @@
|
||||
import { GeistMono } from "geist/font/mono";
|
||||
import localFont from "next/font/local";
|
||||
|
||||
const GeistMono = localFont({
|
||||
src: "../../../../node_modules/geist/dist/fonts/geist-mono/GeistMono-Variable.woff2",
|
||||
weight: "100 900",
|
||||
style: "normal",
|
||||
display: "swap",
|
||||
fallback: [
|
||||
// https://github.com/system-fonts/modern-font-stacks#monospace-code
|
||||
"ui-monospace",
|
||||
"'Cascadia Code'",
|
||||
"'Source Code Pro'",
|
||||
"Menlo",
|
||||
"Consolas",
|
||||
"'DejaVu Sans Mono'",
|
||||
"monospace",
|
||||
],
|
||||
adjustFontFallback: false,
|
||||
preload: true,
|
||||
});
|
||||
|
||||
export default GeistMono;
|
||||
|
@@ -1,3 +1,17 @@
|
||||
import { GeistSans } from "geist/font/sans";
|
||||
import localFont from "next/font/local";
|
||||
|
||||
const GeistSans = localFont({
|
||||
src: "../../../../node_modules/geist/dist/fonts/geist-sans/Geist-Variable.woff2",
|
||||
weight: "100 900",
|
||||
style: "normal",
|
||||
display: "swap",
|
||||
fallback: [
|
||||
// https://github.com/system-fonts/modern-font-stacks#system-ui
|
||||
"system-ui",
|
||||
"sans-serif",
|
||||
],
|
||||
adjustFontFallback: false,
|
||||
preload: true,
|
||||
});
|
||||
|
||||
export default GeistSans;
|
||||
|
Reference in New Issue
Block a user