import { staticFile } from "remotion"; /** * CSS @font-face declaration for NotoSerif-Bold (bundled locally). * Use in components via: */ export const NOTO_SERIF_FONT_FAMILY = "NotoSerif-Bold"; export const notoSerifFontFace = ` @font-face { font-family: '${NOTO_SERIF_FONT_FAMILY}'; src: url('${staticFile("fonts/NotoSerif-Bold.ttf")}') format('truetype'); font-weight: 700; font-style: normal; } `; /** * Map of subtitle font families to their CSS-safe names. * These match the options available in SubtitleModal.jsx. */ export const SUBTITLE_FONTS: Record = { Verdana: "Verdana, Geneva, sans-serif", Arial: "Arial, Helvetica, sans-serif", Impact: "Impact, Haettenschweiler, sans-serif", Helvetica: "Helvetica, Arial, sans-serif", Georgia: "Georgia, 'Times New Roman', serif", "Courier New": "'Courier New', Courier, monospace", }; export function getFontStack(fontFamily: string): string { return SUBTITLE_FONTS[fontFamily] ?? fontFamily; }