MCPcopy
hub / github.com/unjs/fontaine / ResolveCategoryFallbacksOptions

Interface ResolveCategoryFallbacksOptions

packages/fontaine/src/fallbacks.ts:15–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13}
14
15export interface ResolveCategoryFallbacksOptions {
16 /** Font family name to resolve fallbacks for */
17 fontFamily: string
18 /** Global fallbacks (array) or per-family fallbacks (object). Array overrides all category-based resolution. */
19 fallbacks: string[] | Record<string, string[]>
20 /** Font metrics containing category information */
21 metrics?: { category?: string } | null
22 /** User-provided category fallback overrides */
23 categoryFallbacks?: Partial<Record<FontCategory, string[]>>
24}
25
26/**
27 * Resolves the appropriate fallback fonts for a given font family.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected