Home / Function/ adobe() — astro Function Reference

adobe() — astro Function Reference

Architecture documentation for the adobe() function in index.ts from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  37bd37b6_0424_4ae3_303d_4eef9ff596cc["adobe()"]
  b2a950f3_8ca8_375e_0c71_a3eaca706b9a["index.ts"]
  37bd37b6_0424_4ae3_303d_4eef9ff596cc -->|defined in| b2a950f3_8ca8_375e_0c71_a3eaca706b9a
  style 37bd37b6_0424_4ae3_303d_4eef9ff596cc fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/astro/src/assets/fonts/providers/index.ts lines 13–29

function adobe(config: AdobeProviderOptions): FontProvider {
	const provider = providers.adobe(config);
	let initializedProvider: InitializedProvider | undefined;
	return {
		name: provider._name,
		config,
		async init(context) {
			initializedProvider = await provider(context);
		},
		async resolveFont({ familyName, ...rest }) {
			return await initializedProvider?.resolveFont(familyName, rest);
		},
		async listFonts() {
			return await initializedProvider?.listFonts?.();
		},
	};
}

Domain

Subdomains

Frequently Asked Questions

What does adobe() do?
adobe() is a function in the astro codebase, defined in packages/astro/src/assets/fonts/providers/index.ts.
Where is adobe() defined?
adobe() is defined in packages/astro/src/assets/fonts/providers/index.ts at line 13.

Analyze Your Own Codebase

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

Try Supermodel Free