getFallbackFont

Retrieves a fallback font based on optional font preferences.

This function searches through the system's available fonts and selects a font that matches the provided options. If no options are provided, it uses the default settings (i.e. Fonts.FontOpts.DEFAULT).

Return

The Fonts.Font matching the specified options, or null if no suitable font is found.

Parameters

opts

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