RealSystemFallbacksProvider Class — astro Architecture
Architecture documentation for the RealSystemFallbacksProvider class in system-fallbacks-provider.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD b1388120_95de_3adb_2e5d_793f6264a31e["RealSystemFallbacksProvider"] 6d0f31e9_9428_514e_4c85_fa96f3a99c1e["system-fallbacks-provider.ts"] b1388120_95de_3adb_2e5d_793f6264a31e -->|defined in| 6d0f31e9_9428_514e_4c85_fa96f3a99c1e ffd6cc42_5f25_f893_aa6e_f408b6806b54["getLocalFonts()"] b1388120_95de_3adb_2e5d_793f6264a31e -->|method| ffd6cc42_5f25_f893_aa6e_f408b6806b54 45023461_2a42_c296_ae59_b171076cf3c4["getMetricsForLocalFont()"] b1388120_95de_3adb_2e5d_793f6264a31e -->|method| 45023461_2a42_c296_ae59_b171076cf3c4
Relationship Graph
Source Code
packages/astro/src/assets/fonts/infra/system-fallbacks-provider.ts lines 71–79
export class RealSystemFallbacksProvider implements SystemFallbacksProvider {
getLocalFonts(fallback: GenericFallbackName): Array<string> | null {
return DEFAULT_FALLBACKS[fallback as keyof typeof DEFAULT_FALLBACKS] ?? null;
}
getMetricsForLocalFont(family: string): FontFaceMetrics {
return SYSTEM_METRICS[family as FallbackName];
}
}
Domain
Source
Frequently Asked Questions
What is the RealSystemFallbacksProvider class?
RealSystemFallbacksProvider is a class in the astro codebase, defined in packages/astro/src/assets/fonts/infra/system-fallbacks-provider.ts.
Where is RealSystemFallbacksProvider defined?
RealSystemFallbacksProvider is defined in packages/astro/src/assets/fonts/infra/system-fallbacks-provider.ts at line 71.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free