# ProvideTextStyle

Common/AllAndroid/JVM

## Functions summary

|---|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `@https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable https://developer.android.com/reference/kotlin/androidx/compose/material/ProvideTextStyle.composable#ProvideTextStyle(androidx.compose.ui.text.TextStyle,kotlin.Function0)(value: https://developer.android.com/reference/kotlin/androidx/compose/ui/text/TextStyle, content: @https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable () -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)` This function is used to set the current value of `https://developer.android.com/reference/kotlin/androidx/compose/material/package-summary#LocalTextStyle()`, merging the given style with the current style values for any missing attributes. | Cmn |

## Functions

### ProvideTextStyle

Cmn Artifact: [androidx.compose.material:material](https://developer.android.com/jetpack/androidx/releases/compose-material) [View Source](https://cs.android.com/search?q=file:androidx/compose/material/Text.kt+function:ProvideTextStyle) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-material#1.0.0)

```
@Composable
fun ProvideTextStyle(value: TextStyle, content: @Composable () -> Unit): Unit
```

This function is used to set the current value of `https://developer.android.com/reference/kotlin/androidx/compose/material/package-summary#LocalTextStyle()`, merging the given style with the current style values for any missing attributes. Any `https://developer.android.com/reference/kotlin/androidx/compose/material/Text.composable#Text(kotlin.String,androidx.compose.ui.Modifier,androidx.compose.ui.graphics.Color,androidx.compose.ui.unit.TextUnit,androidx.compose.ui.text.font.FontStyle,androidx.compose.ui.text.font.FontWeight,androidx.compose.ui.text.font.FontFamily,androidx.compose.ui.unit.TextUnit,androidx.compose.ui.text.style.TextDecoration,androidx.compose.ui.text.style.TextAlign,androidx.compose.ui.unit.TextUnit,androidx.compose.ui.text.style.TextOverflow,kotlin.Boolean,kotlin.Int,kotlin.Int,kotlin.Function1,androidx.compose.ui.text.TextStyle)` components included in this component's `https://developer.android.com/reference/kotlin/androidx/compose/material/package-summary#ProvideTextStyle(androidx.compose.ui.text.TextStyle,kotlin.Function0)` will be styled with this style unless styled explicitly.

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/material/package-summary#LocalTextStyle()` |   |