StaticproviderSet the font provider used when calling Font.load() without raw data.
The default provider fetches from the fontsource CDN. Replace it to load fonts from your own CDN or any other source.
A FontProvider implementation
StaticloadLoad font from raw data.
Unique name to identify this font
Raw font binary data
Optionaloptions: LoadFontOptions
Load options
Auto-load a font using the configured font provider.
With the default FontsourceProvider, the name must match a fontsource
package slug (e.g. 'poppins', 'open-sans').
Font name passed to the provider
Optionaloptions: Record<string, unknown>
Provider-specific options (see FontsourceOptions for defaults)
StaticunloadUnload a previously loaded font.
Font name to unload
Font loader class for managing custom fonts. Fonts are loaded globally and can be referenced by name in Text objects.
Example
Example
Example