summaryrefslogtreecommitdiff
path: root/apps/web/src/fonts/types.ts
blob: 89ebce083c6bb11de11ad277d07ac60a856b48c6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
export interface FontOption {
	value: string;
	label: string;
	category: "system" | "google" | "custom";
	weights?: number[];
	hasClassName?: boolean;
}

export interface GoogleFontMeta {
	family: string;
	category: string;
}

export interface FontAtlasEntry {
	x: number;
	y: number;
	w: number;
	ch: number;
	s: string[];
}

export interface FontAtlas {
	fonts: Record<string, FontAtlasEntry>;
}