getFallbackFonts

fun getFallbackFonts(opts: Fonts.FontOpts = Fonts.FontOpts.DEFAULT): List<Fonts.Font>

Retrieves a list of fallback fonts based on optional font preferences.

This function searches through the system's available fonts and returns a list of fonts that match the provided options, ordered by priority with named fonts first, followed by unnamed fallback fonts.

Return

A List of Fonts.Font matching the specified options, or an empty list if no suitable fonts are found.

Parameters

opts

Optional Fonts.FontOpts specifying the desired font characteristics. If not provided, defaults are used.