Home / Function/ getMetricsForLocalFont() — astro Function Reference

getMetricsForLocalFont() — astro Function Reference

Architecture documentation for the getMetricsForLocalFont() function in system-fallbacks-provider.ts from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  45023461_2a42_c296_ae59_b171076cf3c4["getMetricsForLocalFont()"]
  b1388120_95de_3adb_2e5d_793f6264a31e["RealSystemFallbacksProvider"]
  45023461_2a42_c296_ae59_b171076cf3c4 -->|defined in| b1388120_95de_3adb_2e5d_793f6264a31e
  style 45023461_2a42_c296_ae59_b171076cf3c4 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/astro/src/assets/fonts/infra/system-fallbacks-provider.ts lines 76–78

	getMetricsForLocalFont(family: string): FontFaceMetrics {
		return SYSTEM_METRICS[family as FallbackName];
	}

Domain

Subdomains

Frequently Asked Questions

What does getMetricsForLocalFont() do?
getMetricsForLocalFont() is a function in the astro codebase, defined in packages/astro/src/assets/fonts/infra/system-fallbacks-provider.ts.
Where is getMetricsForLocalFont() defined?
getMetricsForLocalFont() is defined in packages/astro/src/assets/fonts/infra/system-fallbacks-provider.ts at line 76.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free