class RemoteTypeface.Named : RemoteTypeface


Represents a system font referenced by name.

Summary

Public constructors

Named(fontName: String, weight: Int, isItalic: Boolean)

Public functions

open operator Boolean
equals(other: Any?)
open Int
open Typeface

Converts this RemoteTypeface to an Android framework Typeface.

Public properties

Boolean

Whether the font is italic.

open String

The name used to identify the font in the document and player

Int

The weight of the font (e.g., 400 for normal, 700 for bold).

Public constructors

Named

Added in 1.0.0-alpha17
Named(fontName: String, weight: Int = 400, isItalic: Boolean = false)
Parameters
fontName: String

The string name of the font family (e.g., "roboto-flex").

weight: Int = 400

The weight of the font (e.g., 400 for normal, 700 for bold).

isItalic: Boolean = false

Whether the font is italic.

Public functions

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

toAndroidTypeface

open fun toAndroidTypeface(): Typeface

Converts this RemoteTypeface to an Android framework Typeface.

Public properties

isItalic

Added in 1.0.0-alpha17
val isItalicBoolean

Whether the font is italic.

name

open val nameString

The name used to identify the font in the document and player

weight

Added in 1.0.0-alpha17
val weightInt

The weight of the font (e.g., 400 for normal, 700 for bold).