Compose Unstyled 2.0 is out! Check the official announcement blog ->
Class

RemoteTypeface.Named

Represents a system font referenced by name.

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.

Last updated: