get Font
Returns a list of FontBytes (i.e. ByteArray) representing fonts that the runtime will use to try and match a missing character in the Rive file.
The runtime attempts to match the character using the fonts in the list in a first-in, first-out (FIFO) order, starting with the font at index 0, then proceeding to index 1, and so on, until a font containing the required character is found or the list is exhausted.
Caching Behavior: This function is invoked by the Rive runtime only when its internal native cache does not contain fallback font data for the requested weight. The returned list of FontBytes is immediately decoded into native font representations and cached internally, keyed by the weight. Subsequent requests for the same weight will use this cache, and this function will not be called again for that weight. The native cache associated with a particular FontFallbackStrategy instance is cleared only when a new strategy instance is configured for the Rive runtime (i.e. by setting a new stylePicker or equivalent configuration). Your implementation should return a complete and ordered list of fallback fonts for the requested weight during the initial call, as it represents the definitive set for that weight category weight category while this strategy instance is active.
Return
A list of font byte arrays to be used for character fallback, ordered by preference.
Parameters
The weight of the font for which fallbacks are needed.