---
title: "Compose UI Text API Reference"
---

## Installation
```kotlin
implementation("androidx.compose.ui:ui-text:1.11.0-beta02")
```
## Classes
- [AndroidFont](/jetpack-compose/androidx.compose.ui/ui-text/classes/AndroidFont)
- [AnnotatedString](/jetpack-compose/androidx.compose.ui/ui-text/classes/AnnotatedString)
- [BackspaceCommand](/jetpack-compose/androidx.compose.ui/ui-text/classes/BackspaceCommand)
- [BaselineShift](/jetpack-compose/androidx.compose.ui/ui-text/classes/BaselineShift)
- [Bullet](/jetpack-compose/androidx.compose.ui/ui-text/classes/Bullet)
- [CommitTextCommand](/jetpack-compose/androidx.compose.ui/ui-text/classes/CommitTextCommand)
- [DeleteAllCommand](/jetpack-compose/androidx.compose.ui/ui-text/classes/DeleteAllCommand)
- [DeleteSurroundingTextCommand](/jetpack-compose/androidx.compose.ui/ui-text/classes/DeleteSurroundingTextCommand)
- [DeleteSurroundingTextInCodePointsCommand](/jetpack-compose/androidx.compose.ui/ui-text/classes/DeleteSurroundingTextInCodePointsCommand)
- [DeviceFontFamilyName](/jetpack-compose/androidx.compose.ui/ui-text/classes/DeviceFontFamilyName)
- [EditProcessor](/jetpack-compose/androidx.compose.ui/ui-text/classes/EditProcessor)
- [EditingBuffer](/jetpack-compose/androidx.compose.ui/ui-text/classes/EditingBuffer)
- [EmojiSupportMatch](/jetpack-compose/androidx.compose.ui/ui-text/classes/EmojiSupportMatch)
- [ExperimentalTextApi](/jetpack-compose/androidx.compose.ui/ui-text/classes/ExperimentalTextApi)
- [FileBasedFontFamily](/jetpack-compose/androidx.compose.ui/ui-text/classes/FileBasedFontFamily)
- [FinishComposingTextCommand](/jetpack-compose/androidx.compose.ui/ui-text/classes/FinishComposingTextCommand)
- [FontFamily](/jetpack-compose/androidx.compose.ui/ui-text/classes/FontFamily)
- [FontListFontFamily](/jetpack-compose/androidx.compose.ui/ui-text/classes/FontListFontFamily)
- [FontLoadingStrategy](/jetpack-compose/androidx.compose.ui/ui-text/classes/FontLoadingStrategy)
- [FontStyle](/jetpack-compose/androidx.compose.ui/ui-text/classes/FontStyle)
- [FontSynthesis](/jetpack-compose/androidx.compose.ui/ui-text/classes/FontSynthesis)
- [FontWeight](/jetpack-compose/androidx.compose.ui/ui-text/classes/FontWeight)
- [GenericFontFamily](/jetpack-compose/androidx.compose.ui/ui-text/classes/GenericFontFamily)
- [Hyphens](/jetpack-compose/androidx.compose.ui/ui-text/classes/Hyphens)
- [ImeAction](/jetpack-compose/androidx.compose.ui/ui-text/classes/ImeAction)
- [ImeOptions](/jetpack-compose/androidx.compose.ui/ui-text/classes/ImeOptions)
- [InternalPlatformTextApi](/jetpack-compose/androidx.compose.ui/ui-text/classes/InternalPlatformTextApi)
- [InternalTextApi](/jetpack-compose/androidx.compose.ui/ui-text/classes/InternalTextApi)
- [KeyboardCapitalization](/jetpack-compose/androidx.compose.ui/ui-text/classes/KeyboardCapitalization)
- [KeyboardType](/jetpack-compose/androidx.compose.ui/ui-text/classes/KeyboardType)
- [LineBreak](/jetpack-compose/androidx.compose.ui/ui-text/classes/LineBreak)
- [LineHeightStyle](/jetpack-compose/androidx.compose.ui/ui-text/classes/LineHeightStyle)
- [LinkAnnotation](/jetpack-compose/androidx.compose.ui/ui-text/classes/LinkAnnotation)
- [LoadedFontFamily](/jetpack-compose/androidx.compose.ui/ui-text/classes/LoadedFontFamily)
- [Locale](/jetpack-compose/androidx.compose.ui/ui-text/classes/Locale)
- [LocaleList](/jetpack-compose/androidx.compose.ui/ui-text/classes/LocaleList)
- [MoveCursorCommand](/jetpack-compose/androidx.compose.ui/ui-text/classes/MoveCursorCommand)
- [MultiParagraph](/jetpack-compose/androidx.compose.ui/ui-text/classes/MultiParagraph)
- [MultiParagraphIntrinsics](/jetpack-compose/androidx.compose.ui/ui-text/classes/MultiParagraphIntrinsics)
- [ParagraphStyle](/jetpack-compose/androidx.compose.ui/ui-text/classes/ParagraphStyle)
- [PasswordVisualTransformation](/jetpack-compose/androidx.compose.ui/ui-text/classes/PasswordVisualTransformation)
- [Placeholder](/jetpack-compose/androidx.compose.ui/ui-text/classes/Placeholder)
- [PlaceholderVerticalAlign](/jetpack-compose/androidx.compose.ui/ui-text/classes/PlaceholderVerticalAlign)
- [PlatformImeOptions](/jetpack-compose/androidx.compose.ui/ui-text/classes/PlatformImeOptions)
- [PlatformParagraphStyle](/jetpack-compose/androidx.compose.ui/ui-text/classes/PlatformParagraphStyle)
- [PlatformSpanStyle](/jetpack-compose/androidx.compose.ui/ui-text/classes/PlatformSpanStyle)
- [PlatformTextStyle](/jetpack-compose/androidx.compose.ui/ui-text/classes/PlatformTextStyle)
- [ResolvedTextDirection](/jetpack-compose/androidx.compose.ui/ui-text/classes/ResolvedTextDirection)
- [ResourceFont](/jetpack-compose/androidx.compose.ui/ui-text/classes/ResourceFont)
- [SetComposingRegionCommand](/jetpack-compose/androidx.compose.ui/ui-text/classes/SetComposingRegionCommand)
- [SetComposingTextCommand](/jetpack-compose/androidx.compose.ui/ui-text/classes/SetComposingTextCommand)
- [SetSelectionCommand](/jetpack-compose/androidx.compose.ui/ui-text/classes/SetSelectionCommand)
- [SpanStyle](/jetpack-compose/androidx.compose.ui/ui-text/classes/SpanStyle)
- [StringAnnotation](/jetpack-compose/androidx.compose.ui/ui-text/classes/StringAnnotation)
- [SystemFontFamily](/jetpack-compose/androidx.compose.ui/ui-text/classes/SystemFontFamily)
- [TextAlign](/jetpack-compose/androidx.compose.ui/ui-text/classes/TextAlign)
- [TextDecoration](/jetpack-compose/androidx.compose.ui/ui-text/classes/TextDecoration)
- [TextDirection](/jetpack-compose/androidx.compose.ui/ui-text/classes/TextDirection)
- [TextFieldValue](/jetpack-compose/androidx.compose.ui/ui-text/classes/TextFieldValue)
- [TextGeometricTransform](/jetpack-compose/androidx.compose.ui/ui-text/classes/TextGeometricTransform)
- [TextGranularity](/jetpack-compose/androidx.compose.ui/ui-text/classes/TextGranularity)
- [TextIndent](/jetpack-compose/androidx.compose.ui/ui-text/classes/TextIndent)
- [TextInputService](/jetpack-compose/androidx.compose.ui/ui-text/classes/TextInputService)
- [TextInputSession](/jetpack-compose/androidx.compose.ui/ui-text/classes/TextInputSession)
- [TextLayoutInput](/jetpack-compose/androidx.compose.ui/ui-text/classes/TextLayoutInput)
- [TextLayoutResult](/jetpack-compose/androidx.compose.ui/ui-text/classes/TextLayoutResult)
- [TextLinkStyles](/jetpack-compose/androidx.compose.ui/ui-text/classes/TextLinkStyles)
- [TextMeasurer](/jetpack-compose/androidx.compose.ui/ui-text/classes/TextMeasurer)
- [TextMotion](/jetpack-compose/androidx.compose.ui/ui-text/classes/TextMotion)
- [TextOverflow](/jetpack-compose/androidx.compose.ui/ui-text/classes/TextOverflow)
- [TextRange](/jetpack-compose/androidx.compose.ui/ui-text/classes/TextRange)
- [TextStyle](/jetpack-compose/androidx.compose.ui/ui-text/classes/TextStyle)
- [TransformedText](/jetpack-compose/androidx.compose.ui/ui-text/classes/TransformedText)
- [TtsAnnotation](/jetpack-compose/androidx.compose.ui/ui-text/classes/TtsAnnotation)
- [UrlAnnotation](/jetpack-compose/androidx.compose.ui/ui-text/classes/UrlAnnotation)
- [VerbatimTtsAnnotation](/jetpack-compose/androidx.compose.ui/ui-text/classes/VerbatimTtsAnnotation)

## Interfaces
- [EditCommand](/jetpack-compose/androidx.compose.ui/ui-text/interfaces/EditCommand)
- [Font](/jetpack-compose/androidx.compose.ui/ui-text/interfaces/Font)
- [InputEventCallback](/jetpack-compose/androidx.compose.ui/ui-text/interfaces/InputEventCallback)
- [LinkInteractionListener](/jetpack-compose/androidx.compose.ui/ui-text/interfaces/LinkInteractionListener)
- [OffsetMapping](/jetpack-compose/androidx.compose.ui/ui-text/interfaces/OffsetMapping)
- [Paragraph](/jetpack-compose/androidx.compose.ui/ui-text/interfaces/Paragraph)
- [ParagraphIntrinsics](/jetpack-compose/androidx.compose.ui/ui-text/interfaces/ParagraphIntrinsics)
- [PlatformTextInputService](/jetpack-compose/androidx.compose.ui/ui-text/interfaces/PlatformTextInputService)
- [TextInclusionStrategy](/jetpack-compose/androidx.compose.ui/ui-text/interfaces/TextInclusionStrategy)
- [Typeface](/jetpack-compose/androidx.compose.ui/ui-text/interfaces/Typeface)
- [VisualTransformation](/jetpack-compose/androidx.compose.ui/ui-text/interfaces/VisualTransformation)

## Properties
- [isSpecified](/jetpack-compose/androidx.compose.ui/ui-text/properties/isSpecified)

## Functions
- [AnnotatedString](/jetpack-compose/androidx.compose.ui/ui-text/functions/AnnotatedString)
- [buildAnnotatedString](/jetpack-compose/androidx.compose.ui/ui-text/functions/buildAnnotatedString)
- [capitalize](/jetpack-compose/androidx.compose.ui/ui-text/functions/capitalize)
- [coerceIn](/jetpack-compose/androidx.compose.ui/ui-text/functions/coerceIn)
- [createFontFamilyResolver](/jetpack-compose/androidx.compose.ui/ui-text/functions/createFontFamilyResolver)
- [decapitalize](/jetpack-compose/androidx.compose.ui/ui-text/functions/decapitalize)
- [drawText](/jetpack-compose/androidx.compose.ui/ui-text/functions/drawText)
- [Font](/jetpack-compose/androidx.compose.ui/ui-text/functions/Font)
- [FontFamily](/jetpack-compose/androidx.compose.ui/ui-text/functions/FontFamily)
- [fromHtml](/jetpack-compose/androidx.compose.ui/ui-text/functions/fromHtml)
- [getSelectedText](/jetpack-compose/androidx.compose.ui/ui-text/functions/getSelectedText)
- [getTextAfterSelection](/jetpack-compose/androidx.compose.ui/ui-text/functions/getTextAfterSelection)
- [getTextBeforeSelection](/jetpack-compose/androidx.compose.ui/ui-text/functions/getTextBeforeSelection)
- [lerp](/jetpack-compose/androidx.compose.ui/ui-text/functions/lerp)
- [Paragraph](/jetpack-compose/androidx.compose.ui/ui-text/functions/Paragraph)
- [ParagraphIntrinsics](/jetpack-compose/androidx.compose.ui/ui-text/functions/ParagraphIntrinsics)
- [resolveAsTypeface](/jetpack-compose/androidx.compose.ui/ui-text/functions/resolveAsTypeface)
- [resolveDefaults](/jetpack-compose/androidx.compose.ui/ui-text/functions/resolveDefaults)
- [substring](/jetpack-compose/androidx.compose.ui/ui-text/functions/substring)
- [takeOrElse](/jetpack-compose/androidx.compose.ui/ui-text/functions/takeOrElse)
- [TextRange](/jetpack-compose/androidx.compose.ui/ui-text/functions/TextRange)
- [toFontFamily](/jetpack-compose/androidx.compose.ui/ui-text/functions/toFontFamily)
- [toLowerCase](/jetpack-compose/androidx.compose.ui/ui-text/functions/toLowerCase)
- [toSpan](/jetpack-compose/androidx.compose.ui/ui-text/functions/toSpan)
- [toUpperCase](/jetpack-compose/androidx.compose.ui/ui-text/functions/toUpperCase)
- [Typeface](/jetpack-compose/androidx.compose.ui/ui-text/functions/Typeface)
- [withAnnotation](/jetpack-compose/androidx.compose.ui/ui-text/functions/withAnnotation)
- [withLink](/jetpack-compose/androidx.compose.ui/ui-text/functions/withLink)
- [withStyle](/jetpack-compose/androidx.compose.ui/ui-text/functions/withStyle)

