-
AnnotatedString
Create an AnnotatedString with a spanStyle that will apply to the whole text.
-
Font
Create a Font declaration from a file in the assets directory.
-
FontFamily
Creates a FontFamily from Android Typeface.
- Paragraph
- ParagraphIntrinsics
-
TextRange
An immutable text range class, represents a text range from start (inclusive) to end (exclusive).
-
Typeface
Build an Android specific Typeface from FontFamily.
-
buildAnnotatedString
Build a new AnnotatedString by populating newly created AnnotatedString.Builder provided by builder.
-
capitalize
Create capitalized AnnotatedString The capitalization sometimes maps different number of characters.
-
coerceIn
Ensures that TextRange.start and TextRange.end values lies in the specified range minimumValue and maximumValue.
-
createFontFamilyResolver
Bridge between subclasses of Font.ResourceLoader and the new FontFamily.Resolver API.
-
decapitalize
Create capitalized AnnotatedString The decapitalization sometimes maps different number of characters.
-
drawText
Draw styled text using a TextMeasurer.
-
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 PlatformParagraphStyle's.
-
resolveAsTypeface
Resolve a font to an Android Typeface On Android, font resolution always produces an android.graphics.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.
-
toFontFamily
Create a FontFamily from this single Font.
-
toLowerCase
Create lower case transformed AnnotatedString The lowercase sometimes maps different number of characters.
- toSpan
-
toUpperCase
Create upper case transformed AnnotatedString The uppercase sometimes maps different number of characters.
-
withAnnotation
Pushes an annotation to the AnnotatedString.Builder, executes block and then pops the annotation.
-
withLink
Pushes a LinkAnnotation to the AnnotatedString.Builder, executes block and then pops the annotation.
-
withStyle
Pushes style to the AnnotatedString.Builder, executes block and then pops the style.
ui-text
Jetpack Compose API reference for ui-text.