FontAsset

class FontAsset(address: Long, rendererTypeIdx: Int) : FileAsset

A thin Kotlin wrapper for the underlying C++ font asset. Helpful to distinguish between various FileAsset subclasses.

Constructors

Link copied to clipboard
constructor(address: Long, rendererTypeIdx: Int)

Properties

Link copied to clipboard
Link copied to clipboard

Getter/Setter for the underlying C++ pointer value.

Link copied to clipboard
Link copied to clipboard

The RiveFont object associated with this FontAsset.

Link copied to clipboard

Whether this objects underlying pointer is still valid.

Link copied to clipboard
Link copied to clipboard
open val refCount: Int
Link copied to clipboard
override var refs: AtomicInteger
Link copied to clipboard

Functions

Link copied to clipboard
open override fun acquire(): Int

Increments the references for this counter. Cannot be used for initialization - use refs.incrementAndGet instead.

Link copied to clipboard
open fun cppDelete(pointer: Long)
Link copied to clipboard
fun decode(bytes: ByteArray): Boolean
Link copied to clipboard
open override fun release(): Int

Decrements the reference counter.