sealed class RemoteFontFamily

Known direct subclasses
RemoteFontFamily.Cursive

Represents the cursive system font family.

RemoteFontFamily.Default

Represents the default system font family.

RemoteFontFamily.Monospace

Represents the monospace system font family.

RemoteFontFamily.Named

Represents a custom or system font family referenced by name.

RemoteFontFamily.SansSerif

Represents the sans-serif system font family.

RemoteFontFamily.Serif

Represents the serif system font family.


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

Summary

Nested types

Represents the cursive system font family.

Represents the default system font family.

Represents the monospace system font family.

Represents a custom or system font family referenced by name.

Represents the sans-serif system font family.

Represents the serif system font family.

Public companion functions

RemoteFontFamily?

Maps a Compose FontFamily to a RemoteFontFamily.

Protected constructors

RemoteFontFamily(name: String, fontFamilyName: String)

Public functions

open String

Public properties

String

The name used by the player to resolve the font (e.g., "serif").

Public companion functions

fromComposeFontFamily

Added in 1.0.0-alpha12
fun fromComposeFontFamily(fontFamily: FontFamily?): RemoteFontFamily?

Maps a Compose FontFamily to a RemoteFontFamily.

Protected constructors

RemoteFontFamily

protected RemoteFontFamily(name: String, fontFamilyName: String)
Parameters
name: String

The name used by the player to resolve the font (e.g., "serif").

fontFamilyName: String

A display name used for debugging and logging purposes.

Public functions

toString

open fun toString(): String

Public properties

name

Added in 1.0.0-alpha12
val nameString

The name used by the player to resolve the font (e.g., "serif").