Files
kk_card_gen/lib/fonts.ts
T
2026-09-13 14:58:27 +05:30

44 lines
871 B
TypeScript

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);
}