Source set: Android
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: Android
override fun toString(): String
Members
Default
Source set: Android
public object Default : RemoteFontFamily("default", "RemoteFontFamily.Default")
Represents the default system font family.
SansSerif
Source set: Android
public object SansSerif : RemoteFontFamily("sans-serif", "RemoteFontFamily.SansSerif")
Represents the sans-serif system font family.
Serif
Source set: Android
public object Serif : RemoteFontFamily("serif", "RemoteFontFamily.Serif")
Represents the serif system font family.
Monospace
Source set: Android
public object Monospace : RemoteFontFamily("monospace", "RemoteFontFamily.Monospace")
Represents the monospace system font family.
Cursive
Source set: Android
public object Cursive : RemoteFontFamily("cursive", "RemoteFontFamily.Cursive")
Represents the cursive system font family.
Named
Source set: Android
public class Named(name: String) : RemoteFontFamily(name, "RemoteFontFamily.Named($name)")
Represents a custom or system font family referenced by name.
Functions
equals
Source set: Android
override fun equals(other: Any?): Boolean
hashCode
Source set: Android
override fun hashCode(): Int
Companion
Source set: Android
public companion object
Functions
fromComposeFontFamily
Source set: Android
public fun fromComposeFontFamily(fontFamily: FontFamily?): RemoteFontFamily?
Maps a Compose FontFamily to a RemoteFontFamily.