ResolvedFont

data class ResolvedFont(val name: String, val bytes: ByteArray?)

Resolved font reference passed to a com.conamobile.pdfkmp.render.PdfDriver.

Layout and rendering go through ResolvedFont rather than PdfFont so that platform backends never have to re-implement the cascade of "is the font Default? if so, which weight/style is needed? which bundled bytes match?".

Constructors

Link copied to clipboard
constructor(name: String, bytes: ByteArray?)

Properties

Link copied to clipboard

TTF/OTF bytes to register on first use, or null for fonts already known to the platform (system-named fonts).

Link copied to clipboard

Stable identifier registered with the platform font manager. The same name is used for measurement and for drawing.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String