<h2 id="remotetext-text-modifier-color-fontsize-fontstyle-fontweight-fontfamily-textalign-overflow-maxlines-style-fontvariationsettings">RemoteText</h2>

<div class='sourceset sourceset-android'>Android</div>

```kotlin
@Composable
@RemoteComposable
public fun RemoteText(
    text: RemoteString,
    modifier: RemoteModifier = RemoteModifier,
    color: RemoteColor? = null,
    fontSize: RemoteTextUnit? = null,
    fontStyle: FontStyle? = null,
    fontWeight: FontWeight? = null,
    fontFamily: FontFamily? = null,
    textAlign: TextAlign? = null,
    overflow: TextOverflow = TextOverflow.Clip,
    maxLines: Int = Int.MAX_VALUE,
    style: RemoteTextStyle = RemoteTextStyle.Default,
    fontVariationSettings: FontVariation.Settings? = null,
)
```

Remote composable that displays text.

Note that density-dependent values like `fontSize`, [style#letterSpacing], and [style#lineHeight]
are converted to pixels using [RemoteDensity](/jetpack-compose/androidx.compose.remote/remote-creation-compose/classes/RemoteDensity) from the environment where the [RemoteText](/jetpack-compose/androidx.compose.remote/remote-creation-compose/composable-functions/RemoteText) is
being *created*, not the remote environment where it will be displayed. This means these values
are fixed at creation time based on the local density.

#### Parameters

| | |
| --- | --- |
| text | The text to be displayed. |
| modifier | The [RemoteModifier](/jetpack-compose/androidx.compose.remote/remote-creation-compose/interfaces/RemoteModifier) to be applied to this text. |
| color | [RemoteColor](/jetpack-compose/androidx.compose.remote/remote-creation-compose/classes/RemoteColor) to apply to the text. If [color](/jetpack-compose/androidx.compose.ui/ui-graphics/classes/Color) is not specified, and it is not provided in [style](/jetpack-compose/androidx.compose.foundation/foundation/interfaces/Style), then `Color.Black` will be used. |
| fontSize | The size of the font. |
| fontStyle | The font style to be applied to the text. |
| fontWeight | The font weight to be applied to the text. |
| fontFamily | The font family to be applied to the text. |
| textAlign | The alignment of the text within its container. |
| overflow | How visual overflow should be handled. |
| maxLines | An optional maximum number of lines for the text. |
| style | The [RemoteTextStyle](/jetpack-compose/androidx.compose.remote/remote-creation-compose/classes/RemoteTextStyle) to be applied to the text. |
| fontVariationSettings | The font variation settings to be applied to the text. |