Skip to main content

Interface: LoadGoogleFontOptions

Options for loadGoogleFont.

Properties

PropertyTypeDescription
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.
italic?booleanWhether to request the italic style. Defaults to false.
signal?AbortSignalAbort signal forwarded to both network requests.
text?stringRestrict the downloaded font to the glyphs needed for this text (Google Fonts &text= subsetting). Produces a much smaller file.
weight?numberFont weight to request (1-1000). Defaults to 400.