remember Font
Decode a font from the given bytes on the provided RiveWorker. The decoded font can only be used on the same RiveWorker it was created on.
This function is intended for use with fonts that may want to be registered multiple times with FontAsset.register. If you want to decode and register in one step, use rememberRegisteredFont instead.
The font will be deleted and its RiveWorker reference released when the composable leaves the composition.
Return
The Result of the font decoding, which can be either loading, error, or success with the FontHandle.
Parameters
rive Worker
The Rive worker that owns and performs operations on this font.
bytes
The byte array containing the font data to decode.