Appearance
a11ydocs / LoadGoogleFontOptions
Interface: LoadGoogleFontOptions
Defined in: src/google-fonts.ts:6
Options for loadGoogleFont.
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
fetch? | { (input, init?): Promise<Response>; (input, init?): Promise<Response>; } | Custom fetch implementation. Defaults to the global fetch. Useful for proxies, caching, or runtimes without a global fetch. | src/google-fonts.ts:22 |
italic? | boolean | Whether to request the italic style. Defaults to false. | src/google-fonts.ts:10 |
signal? | AbortSignal | Abort signal forwarded to both network requests. | src/google-fonts.ts:17 |
text? | string | Restrict the downloaded font to the glyphs needed for this text (Google Fonts &text= subsetting). Produces a much smaller file. | src/google-fonts.ts:15 |
weight? | number | Font weight to request (1-1000). Defaults to 400. | src/google-fonts.ts:8 |