{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

androidx.compose.ui.text.style

Classes

BaselineShift

The amount by which the text is shifted up or down from current the baseline.

BaselineShiftKt
Hyphens

Automatic hyphenation configuration.

LineBreak

When soft wrap is enabled and the width of the text exceeds the width of its container, line breaks are inserted in the text to split it over multiple lines.

LineBreak.Strategy

The strategy used for line breaking.

LineBreak.Strictness

Describes the strictness of line breaking, determining before which characters line breaks can be inserted.

LineBreak.WordBreak

Describes how line breaks should be inserted within words.

LineHeightStyle

The configuration for line height such as alignment of the line in the provided line height, whether to apply additional space as a result of line height to top of first line top and bottom of last line.

LineHeightStyle.Alignment

Defines how to align the line in the space provided by the line height.

LineHeightStyle.Trim

Defines whether the space that would be added to the top of first line, and bottom of the last line should be trimmed or not.

TextAlign

Defines how to align text horizontally.

TextDecoration

Defines a horizontal line to be drawn on the text.

TextDirection

Defines the algorithm to be used while determining the text direction.

TextGeometricTransform

Define a geometric transformation on text.

TextGeometricTransformKt
TextIndent

Specify the indentation of a paragraph.

TextIndentKt
TextMotion

Defines ways to render and place glyphs to provide readability and smooth animations for text.

TextOverflow

How overflowing text should be handled.

BaselineShift.Companion
Hyphens.Companion
LineBreak.Companion
LineBreak.Strategy.Companion
LineBreak.Strictness.Companion
LineBreak.WordBreak.Companion
LineHeightStyle.Alignment.Companion
LineHeightStyle.Companion
LineHeightStyle.Trim.Companion
TextAlign.Companion
TextDecoration.Companion
TextDirection.Companion
TextIndent.Companion
TextMotion.Companion
TextOverflow.Companion

Enums

ResolvedTextDirection

Describes the directionality of a text.