make

fun make(bytes: ByteArray, rendererType: RendererType = Rive.defaultRendererType): RiveFont

Creates a RiveFont by decoding bytes.

The caller is in charge of the ownership of this NativeObject. It must be freed by calling release.

Return

The constructed RiveFont object.

Parameters

bytes

Encoded bytes for a font.

rendererType

The renderer decoding this font. This needs to match the renderer for the View using this.