Source set: Android
public class Named(
private val fontName: String,
public val weight: Int = 400,
public val isItalic: Boolean = false,
) : RemoteTypeface
Represents a system font referenced by name.
Parameters
| fontName | The string name of the font family (e.g., "roboto-flex"). |
| weight | The weight of the font (e.g., 400 for normal, 700 for bold). |
| isItalic | Whether the font is italic. |
Properties
name
Source set: Android
override val name: String = fontName
Functions
toAndroidTypeface
Source set: Android
override fun toAndroidTypeface(): Typeface
equals
Source set: Android
override fun equals(other: Any?): Boolean
hashCode
Source set: Android
override fun hashCode(): Int