Skip to content

a11ydocs v1.7.0


a11ydocs / LoadGoogleFontOptions

Interface: LoadGoogleFontOptions

Defined in: src/google-fonts.ts:6

Options for loadGoogleFont.

Properties

PropertyTypeDescriptionDefined 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?booleanWhether to request the italic style. Defaults to false.src/google-fonts.ts:10
signal?AbortSignalAbort signal forwarded to both network requests.src/google-fonts.ts:17
text?stringRestrict 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?numberFont weight to request (1-1000). Defaults to 400.src/google-fonts.ts:8

Released under the ISC license.