This commit is contained in:
2026-09-13 14:58:27 +05:30
parent 4f80c16043
commit 9c7a16b57c
24 changed files with 2467 additions and 80 deletions
+43
View File
@@ -0,0 +1,43 @@
export type PresetFont = {
id: string;
label: string;
regular: string;
bold: string;
};
export const PRESET_FONTS: PresetFont[] = [
{
id: "Inter",
label: "Inter",
regular: "Inter-Regular.ttf",
bold: "Inter-Bold.ttf",
},
{
id: "Roboto",
label: "Roboto",
regular: "Roboto-Regular.ttf",
bold: "Roboto-Bold.ttf",
},
{
id: "Oswald",
label: "Oswald",
regular: "Oswald-Regular.ttf",
bold: "Oswald-Bold.ttf",
},
{
id: "Montserrat",
label: "Montserrat",
regular: "Montserrat-Regular.ttf",
bold: "Montserrat-Bold.ttf",
},
{
id: "Playfair Display",
label: "Playfair Display",
regular: "PlayfairDisplay-Regular.ttf",
bold: "PlayfairDisplay-Bold.ttf",
},
];
export function isPresetFont(family: string): boolean {
return PRESET_FONTS.some((font) => font.id === family);
}