Class

RemoteFontFamily

A sealed class that represents the concept of a FontFamily in Remote Compose.

Source set: JvmAndAndroid
public sealed class RemoteFontFamily(public val name: String, private val fontFamilyName: String)

A sealed class that represents the concept of a FontFamily in Remote Compose.

Parameters

name The name used by the player to resolve the font (e.g., "serif").
fontFamilyName A display name used for debugging and logging purposes.

Functions

toString

Source set: JvmAndAndroid
override fun toString(): String

Members

Default

Source set: JvmAndAndroid
public object Default : RemoteFontFamily("default", "RemoteFontFamily.Default")

Represents the default system font family.

SansSerif

Source set: JvmAndAndroid
public object SansSerif : RemoteFontFamily("sans-serif", "RemoteFontFamily.SansSerif")

Represents the sans-serif system font family.

Serif

Source set: JvmAndAndroid
public object Serif : RemoteFontFamily("serif", "RemoteFontFamily.Serif")

Represents the serif system font family.

Monospace

Source set: JvmAndAndroid
public object Monospace : RemoteFontFamily("monospace", "RemoteFontFamily.Monospace")

Represents the monospace system font family.

Cursive

Source set: JvmAndAndroid
public object Cursive : RemoteFontFamily("cursive", "RemoteFontFamily.Cursive")

Represents the cursive system font family.

Named

Source set: JvmAndAndroid
public class Named(name: String) : RemoteFontFamily(name, "RemoteFontFamily.Named($name)")

Represents a custom or system font family referenced by name.

Parameters

name The font family name resolved by the player.

Functions

equals

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

hashCode

Source set: JvmAndAndroid
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: