//[tvlib](../../index.md)/[org.mjdev.tvlib.ui.toolkit](index.md)/[withSpanStyle](with-span-style.md) # withSpanStyle [androidJvm]\ inline fun <[R](with-span-style.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [AnnotatedString.Builder](https://developer.android.com/reference/kotlin/androidx/compose/ui/text/AnnotatedString.Builder.html).[withSpanStyle](with-span-style.md)(color: [Color](https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color.html) = Color.Unspecified, fontSize: [TextUnit](https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/TextUnit.html) = TextUnit.Unspecified, fontWeight: [FontWeight](https://developer.android.com/reference/kotlin/androidx/compose/ui/text/font/FontWeight.html)? = null, fontStyle: [FontStyle](https://developer.android.com/reference/kotlin/androidx/compose/ui/text/font/FontStyle.html)? = null, fontSynthesis: [FontSynthesis](https://developer.android.com/reference/kotlin/androidx/compose/ui/text/font/FontSynthesis.html)? = null, fontFamily: [FontFamily](https://developer.android.com/reference/kotlin/androidx/compose/ui/text/font/FontFamily.html)? = null, fontFeatureSettings: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)? = null, letterSpacing: [TextUnit](https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/TextUnit.html) = TextUnit.Unspecified, baselineShift: [BaselineShift](https://developer.android.com/reference/kotlin/androidx/compose/ui/text/style/BaselineShift.html)? = null, textGeometricTransform: [TextGeometricTransform](https://developer.android.com/reference/kotlin/androidx/compose/ui/text/style/TextGeometricTransform.html)? = null, localeList: [LocaleList](https://developer.android.com/reference/kotlin/androidx/compose/ui/text/intl/LocaleList.html)? = null, background: [Color](https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color.html) = Color.Unspecified, textDecoration: [TextDecoration](https://developer.android.com/reference/kotlin/androidx/compose/ui/text/style/TextDecoration.html)? = null, shadow: [Shadow](https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Shadow.html)? = null, platformStyle: [PlatformSpanStyle](https://developer.android.com/reference/kotlin/androidx/compose/ui/text/PlatformSpanStyle.html)? = null, drawStyle: [DrawStyle](https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/drawscope/DrawStyle.html)? = null, block: [AnnotatedString.Builder](https://developer.android.com/reference/kotlin/androidx/compose/ui/text/AnnotatedString.Builder.html).() -> [R](with-span-style.md)): [R](with-span-style.md) inline fun <[R](with-span-style.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [AnnotatedString.Builder](https://developer.android.com/reference/kotlin/androidx/compose/ui/text/AnnotatedString.Builder.html).[withSpanStyle](with-span-style.md)(brush: [Brush](https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Brush.html)?, alpha: [Float](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-float/index.html) = Float.NaN, fontSize: [TextUnit](https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/TextUnit.html) = TextUnit.Unspecified, fontWeight: [FontWeight](https://developer.android.com/reference/kotlin/androidx/compose/ui/text/font/FontWeight.html)? = null, fontStyle: [FontStyle](https://developer.android.com/reference/kotlin/androidx/compose/ui/text/font/FontStyle.html)? = null, fontSynthesis: [FontSynthesis](https://developer.android.com/reference/kotlin/androidx/compose/ui/text/font/FontSynthesis.html)? = null, fontFamily: [FontFamily](https://developer.android.com/reference/kotlin/androidx/compose/ui/text/font/FontFamily.html)? = null, fontFeatureSettings: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)? = null, letterSpacing: [TextUnit](https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/TextUnit.html) = TextUnit.Unspecified, baselineShift: [BaselineShift](https://developer.android.com/reference/kotlin/androidx/compose/ui/text/style/BaselineShift.html)? = null, textGeometricTransform: [TextGeometricTransform](https://developer.android.com/reference/kotlin/androidx/compose/ui/text/style/TextGeometricTransform.html)? = null, localeList: [LocaleList](https://developer.android.com/reference/kotlin/androidx/compose/ui/text/intl/LocaleList.html)? = null, background: [Color](https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color.html) = Color.Unspecified, textDecoration: [TextDecoration](https://developer.android.com/reference/kotlin/androidx/compose/ui/text/style/TextDecoration.html)? = null, shadow: [Shadow](https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Shadow.html)? = null, platformStyle: [PlatformSpanStyle](https://developer.android.com/reference/kotlin/androidx/compose/ui/text/PlatformSpanStyle.html)? = null, drawStyle: [DrawStyle](https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/drawscope/DrawStyle.html)? = null, block: [AnnotatedString.Builder](https://developer.android.com/reference/kotlin/androidx/compose/ui/text/AnnotatedString.Builder.html).() -> [R](with-span-style.md)): [R](with-span-style.md)