remember Registered Font
Decode and register 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 are registered once, as a convenience. If you want to register multiple times, use rememberFont and FontAsset.register instead.
The font will be deleted, unregistered, and its RiveWorker reference released when the composable leaves the composition.
Return
The Result of the font decoding and registration, which can be either loading, error, or success with the FontHandle.
Parameters
The Rive worker that owns and performs operations on this font.
The name of the referenced font. This comes from the zip file created when exporting a Rive file.
The byte array containing the font data to decode.