class RemoteTypeface.Named : RemoteTypeface


Represents a system font referenced by name.

Summary

Public constructors

Named(
    fontName: String,
    weight: @IntRange(from = 1, to = 1000) Int,
    isItalic: Boolean
)

Public functions

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

Public properties

Boolean

Whether the font is italic.

open String

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

@IntRange(from = 1, to = 1000) Int

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

Public constructors

Named

Added in 1.0.0-alpha23
Named(
    fontName: String,
    weight: @IntRange(from = 1, to = 1000) Int = 400,
    isItalic: Boolean = false
)
Parameters
fontName: String

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

weight: @IntRange(from = 1, to = 1000) 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

Public properties

isItalic

Added in 1.0.0-alpha23
val isItalic: Boolean

Whether the font is italic.

name

open val name: String

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

weight

Added in 1.0.0-alpha23
val weight: @IntRange(from = 1, to = 1000) Int

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