ParagraphIntrinsics
Function
Common
Deprecated Font.ResourceLoader is deprecated, instead use FontFamily.Resolver
fun ParagraphIntrinsics(
text: String,
style: TextStyle,
spanStyles: List<AnnotatedString.Range<SpanStyle>> = listOf(),
placeholders: List<AnnotatedString.Range<Placeholder>> = listOf(),
density: Density,
resourceLoader: Font.ResourceLoader,
): ParagraphIntrinsics
Factory method to create a ParagraphIntrinsics
.
If the style
does not contain any androidx.compose.ui.text.style.TextDirection
,
androidx.compose.ui.text.style.TextDirection.Content
is used as the default value.
Common
Deprecated Use an overload that takes
annotations
instead
fun ParagraphIntrinsics(
text: String,
style: TextStyle,
spanStyles: List<AnnotatedString.Range<SpanStyle>> = listOf(),
placeholders: List<AnnotatedString.Range<Placeholder>> = listOf(),
density: Density,
fontFamilyResolver: FontFamily.Resolver,
): ParagraphIntrinsics
Common
fun ParagraphIntrinsics(
text: String,
style: TextStyle,
annotations: List<AnnotatedString.Range<out AnnotatedString.Annotation>>,
density: Density,
fontFamilyResolver: FontFamily.Resolver,
placeholders: List<AnnotatedString.Range<Placeholder>> = listOf(),
): ParagraphIntrinsics
Factory method to create a ParagraphIntrinsics
.
If the style
does not contain any androidx.compose.ui.text.style.TextDirection
,
androidx.compose.ui.text.style.TextDirection.Content
is used as the default value.