---
title: "RemoteFontFamily"
description: "A sealed class that represents the concept of a FontFamily in Remote Compose."
type: "class"
lastmod: "2026-05-20T01:13:53.234212Z"
---
## API Reference

> Source set: Android

```kotlin
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. |

## Companion Object

#### Methods

> Source set: Android

```kotlin
public fun fromComposeFontFamily(fontFamily: FontFamily?): RemoteFontFamily?
```

Maps a Compose [FontFamily](/jetpack-compose/androidx.compose.ui/ui-text/classes/FontFamily) to a [RemoteFontFamily](/jetpack-compose/androidx.compose.remote/remote-creation-compose/classes/RemoteFontFamily).
