-
AnnotatedString
Create an AnnotatedString with a spanStyle that will apply to the whole text.
-
buildAnnotatedString
Build a new AnnotatedString by populating newly created [AnnotatedString.
-
capitalize
Returns capitalized String.
-
coerceIn
Ensures that [TextRange.
-
createFontFamilyResolver
Bridge between subclasses of Font.
-
decapitalize
Returns decapitalized String.
-
drawText
Draw styled text using a TextMeasurer.
-
Font
Creates a Font with using resource ID.
-
FontFamily
Construct a font family that contains list of custom font files.
-
fromHtml
Converts a string with HTML tags into AnnotatedString.
-
getSelectedText
Returns the currently selected text.
-
getTextAfterSelection
Returns the text after the selection.
-
getTextBeforeSelection
Returns the text before the selection.
-
lerp
Interpolate between two ParagraphStyles.
-
Paragraph
Lays out a given text with the given constraints.
-
ParagraphIntrinsics
Factory method to create a ParagraphIntrinsics.
-
resolveAsTypeface
Resolve a font to an Android Typeface
-
resolveDefaults
Fills missing values in TextStyle with default values and resolve TextDirection.
- substring
-
takeOrElse
If isSpecified is true then this is returned, otherwise block is executed and its result is returned.
-
TextRange
An immutable text range class, represents a text range from start (inclusive) to end (exclusive).
-
toFontFamily
Create a FontFamily from this single Font.
-
toLowerCase
Returns lowercase transformed String.
- toSpan
-
toUpperCase
Returns uppercase transformed String.
-
Typeface
Build an Android specific Typeface from FontFamily.
-
withAnnotation
Pushes an annotation to the [AnnotatedString.
-
withLink
Pushes a LinkAnnotation to the [AnnotatedString.
-
withStyle
Pushes style to the [AnnotatedString.
Compose UI Text
Jetpack Compose API reference for ui-text.