androidx.text.vertical.compose

Interfaces

VerticalTextScope

Receiver for the buildVerticalText DSL.

Classes

VerticalTextStyle

A style object for vertical text, containing only members supported by VerticalText.

Annotations

Composables

VerticalText

Displays text laid out vertically using VerticalTextLayout.

buildVerticalText

Composable-context convenience for buildVerticalText.

Top-level functions summary

Spanned
buildVerticalText(density: Density, builder: VerticalTextScope.() -> Unit)

Builds a Spanned representing vertical text by running builder against a VerticalTextScope.

Top-level functions

buildVerticalText

fun buildVerticalText(density: Density, builder: VerticalTextScope.() -> Unit): Spanned

Builds a Spanned representing vertical text by running builder against a VerticalTextScope. The resulting Spanned is an immutable snapshot that can be passed to VerticalText.

Parameters
density: Density

used to resolve sp-based TextUnit values in VerticalTextScope.withStyle.

builder: VerticalTextScope.() -> Unit

the DSL block describing the content.