Font

open class Font(val name: String, val fontFiles: List<File> = emptyList(), val defaultTypeface: Typeface? = null)

A single font that can be set on an com.pspdfkit.annotations.Annotation.

Constructors

Link copied to clipboard
constructor(name: String, fontFiles: List<File> = emptyList(), defaultTypeface: Typeface? = null)
constructor(name: String, fontFiles: List<File>)
constructor(name: String, defaultTypeface: Typeface?)

Properties

Link copied to clipboard

Returns the first font file from fontFiles, or null if no font files are available.

Link copied to clipboard

The default Typeface for this font, or null if not available.

Link copied to clipboard

List of font files associated with this font.

Link copied to clipboard

The name of the font.

Functions

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

Checks equality based on name, fontFiles, and defaultTypeface.

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

Returns a hash code based on name, fontFiles, and defaultTypeface.