decode Font
Decode a font file from the given bytes. The bytes are for a font file, such as TTF. The decoded font is stored on the CommandServer.
Fonts may be used to supply a referenced asset in a Rive file with registerFont.
Return
A handle to the decoded font.
Parameters
bytes
The bytes of the font file to decode.
Throws
If the font could not be decoded, e.g. if the bytes are not a valid font.
If the CommandQueue has been released.
If the coroutine is cancelled before the operation completes.