Class

RemoteTypeface.Named

Represents a system font referenced by name.

Source set: Android
public class Named(
        private val fontName: String,
        @IntRange(from = 1, to = 1000) 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

equals

Source set: Android
override fun equals(other: Any?): Boolean

hashCode

Source set: Android
override fun hashCode(): Int
Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: