ParagraphIntrinsics
Deprecated
Font.ResourceLoader is deprecated, instead use FontFamily.Resolver
expect 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.
ParagraphIntrinsics
Deprecated
Use an overload that takes annotations instead
expect fun ParagraphIntrinsics(
text: String,
style: TextStyle,
spanStyles: List<AnnotatedString.Range<SpanStyle>> = listOf(),
placeholders: List<AnnotatedString.Range<Placeholder>> = listOf(),
density: Density,
fontFamilyResolver: FontFamily.Resolver,
): ParagraphIntrinsics
ParagraphIntrinsics
Deprecated
Use an override with softWrap
expect 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.
ParagraphIntrinsics
expect fun ParagraphIntrinsics(
text: String,
style: TextStyle,
annotations: List<AnnotatedString.Range<out AnnotatedString.Annotation>>,
density: Density,
fontFamilyResolver: FontFamily.Resolver,
placeholders: List<AnnotatedString.Range<Placeholder>>,
softWrap: Boolean,
): ParagraphIntrinsics
Factory method to create a ParagraphIntrinsics.
Parameters
| text | The text to be measured. |
| style | The TextStyle to apply to the text. |
| annotations | The annotations to apply to the text. |
| density | The Density of the display environment. |
| fontFamilyResolver | The FontFamily.Resolver to resolve fonts. |
| softWrap | Whether the text should break at soft line breaks. When the intention is to lay out text as a single line, setting softWrap to false enables optimizations that avoid certain expensive calculations. |
| placeholders | The list of Placeholder to be used in the text. |
ParagraphIntrinsics
Deprecated
Font.ResourceLoader is deprecated, instead use FontFamily.Resolver
actual fun ParagraphIntrinsics(
text: String,
style: TextStyle,
spanStyles: List<AnnotatedString.Range<SpanStyle>>,
placeholders: List<AnnotatedString.Range<Placeholder>>,
density: Density,
resourceLoader: Font.ResourceLoader,
): ParagraphIntrinsics
ParagraphIntrinsics
Deprecated
Use an overload that takes annotations instead
actual fun ParagraphIntrinsics(
text: String,
style: TextStyle,
spanStyles: List<AnnotatedString.Range<SpanStyle>>,
placeholders: List<AnnotatedString.Range<Placeholder>>,
density: Density,
fontFamilyResolver: FontFamily.Resolver,
): ParagraphIntrinsics
ParagraphIntrinsics
Deprecated
Use an override with softWrap
actual fun ParagraphIntrinsics(
text: String,
style: TextStyle,
annotations: List<AnnotatedString.Range<out AnnotatedString.Annotation>>,
density: Density,
fontFamilyResolver: FontFamily.Resolver,
placeholders: List<AnnotatedString.Range<Placeholder>>,
): ParagraphIntrinsics
ParagraphIntrinsics
actual fun ParagraphIntrinsics(
text: String,
style: TextStyle,
annotations: List<AnnotatedString.Range<out AnnotatedString.Annotation>>,
density: Density,
fontFamilyResolver: FontFamily.Resolver,
placeholders: List<AnnotatedString.Range<Placeholder>>,
softWrap: Boolean,
): ParagraphIntrinsics