Skip to content

fetchFontSet

fetchFontSet(options?): Promise<FontBytesByVariant>

Defined in: src/core/fonts/remote-fonts.ts:175

Download a full variant set (regular required; bold/italic/bold-italic best-effort) for the open family that best matches the requested name.

FetchFontSetOptions = {}

The family to substitute and an optional fetch override.

Promise<FontBytesByVariant>

The downloaded font bytes per variant.

Error when the required regular face cannot be downloaded.