File size: 1,573 Bytes
a438bb5
637dd5c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
a438bb5
 
 
 
 
 
 
 
 
8a0a4e8
 
a438bb5
 
637dd5c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
a438bb5
637dd5c
 
 
 
 
 
 
a438bb5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
import { Inter, Edu_SA_Beginner, Orbitron, Amatic_SC, Macondo_Swash_Caps, IM_Fell_English_SC } from "next/font/google"
import localFont from "next/font/local"

export const inter = Inter({
  subsets: ["latin"],
  variable: "--font-inter",
})

export const edu = Edu_SA_Beginner({
  subsets: ["latin"],
  variable: "--font-edu",
})

export const orbitron = Orbitron({
  subsets: ["latin"],
  variable: "--font-orbitron",
})

export const amatic = Amatic_SC({
  subsets: ["latin"],
  weight: "400",
  variable: "--font-amatic"
})

export const macondo = Macondo_Swash_Caps({
  subsets: ["latin"],
  weight: "400",
  variable: "--font-macondo"
})

export const imfell = IM_Fell_English_SC({
  subsets: ["latin"],
  weight: "400",
  variable: "--font-imfell",
  fallback: ["Serif"]
})

export const lugrasimo = localFont({
  src: "../fonts/Lugrasimo-Regular.woff2",
  variable: "--font-lugrasimo"
})

// https://fonts.google.com/specimen/Amatic+SC
// https://fonts.google.com/specimen/Orbitron
// https://fonts.google.com/specimen/Edu+SA+Beginner
// https://fonts.google.com/specimen/Tektur

// https://nextjs.org/docs/pages/building-your-application/optimizing/fonts 
// If loading a variable font, you don"t need to specify the font weight
export const fontList = [
  inter,
  edu,
  orbitron,
  amatic,
  macondo,
  lugrasimo,
]

export const classNames = fontList.map(font => font.className)

export const className = classNames.join(" ")

export type FontName = "font-inter" | "font-sans" | "font-edu" | "font-orbitron" | "font-amatic" | "font-macondo" | "font-lugrasimo"