export type Category = "sans-serif" | "serif" | "display" | "monospace" | "handwriting"; export interface VariableAxis { default: string; min: string; max: string; step: string; } /** Everything the build knows about a family (including the per-subset unicode-range). */ export interface FontData { id: string; family: string; category: Category; order: number; featured: boolean; description: string; languages: string; subsets: string[]; weights: number[]; styles: ("normal" | "italic")[]; defSubset: string; variable: Record | null; license: { type: string; url: string; attribution: string; }; source: string; upstreamVersion: string; lastModified: string; /** Bytes. `total` = every woff2 file of the family. */ size: { total: number; latin400: number | null; latinVariable: number | null; }; files: { static: number; variable: number; }; glyphCount: number; /** Also available as TTF in @xerobi/react-native-fonts and the Flutter package. */ mobile: boolean; unicodeRange: Record; } export type FontMetadata = Omit; export interface FontFaceOptions { /** Subsets to include, or "all". Defaults to the font's default subset (usually latin). */ subsets?: string[] | "all"; /** Static weights, or "all". Defaults to [400]. Ignored when `variable` is true. */ weights?: number[] | "all"; styles?: ("normal" | "italic")[]; display?: "auto" | "block" | "swap" | "fallback" | "optional"; /** Use the variable-font files. */ variable?: boolean; /** Which variable axes file to use. Defaults to "wght". */ axes?: "wght" | "wdth" | "opsz" | "standard"; /** Where the font files are hosted. Defaults to jsDelivr. */ baseUrl?: string; /** Override the CSS font-family name. */ family?: string; formats?: ("woff2" | "woff")[]; } export interface CssPathOptions { weight?: number; italic?: boolean; subset?: string; variable?: boolean; axes?: "wght" | "wdth" | "opsz" | "standard"; } //# sourceMappingURL=types.d.ts.map