Skip to content

Commit

Permalink
Merge pull request #11998 from ethereum/selfhost-fonts
Browse files Browse the repository at this point in the history
Local fonts
  • Loading branch information
wackerow authored Jan 25, 2024
2 parents 8ff2a93 + a291f68 commit d75fd8c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
Binary file added src/fonts/IBMPlexMono-Regular.ttf
Binary file not shown.
Binary file added src/fonts/Inter-VariableFont_slnt,wght.ttf
Binary file not shown.
17 changes: 10 additions & 7 deletions src/lib/fonts.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
import { Inter } from "next/font/google"
import { IBM_Plex_Mono } from "next/font/google"
import localFont from "next/font/local"

export const inter = Inter({
subsets: ["latin"],
// downloaded from https://fonts.google.com/specimen/Inter
export const inter = localFont({
src: "../fonts/Inter-VariableFont_slnt,wght.ttf",
display: "swap",
fallback: ["sans-serif"],
})

export const mono = IBM_Plex_Mono({
subsets: ["latin"],
weight: ["400"],
// downloaded from https://fonts.google.com/specimen/IBM+Plex+Mono
export const mono = localFont({
src: "../fonts/IBMPlexMono-Regular.ttf",
display: "swap",
weight: "400",
fallback: ["Courier", "monospace"],
})

0 comments on commit d75fd8c

Please sign in to comment.