🌈 Create new beautiful Compose Gradients with our new wesite ->
Function

ParagraphIntrinsics

ParagraphIntrinsics

Source set: Android
@Deprecated(
    "Font.ResourceLoader is deprecated, instead use FontFamily.Resolver",
    ReplaceWith(
        "ParagraphIntrinsics(text, style, spanStyles, density, " +
            "createFontFamilyResolver(resourceLoader), placeholders, true)",
        "androidx.compose.ui.text.font.createFontFamilyResolver",
    ),
)
public fun ParagraphIntrinsics(
    text: String,
    style: TextStyle,
    spanStyles: List<AnnotatedString.Range<SpanStyle>>,
    placeholders: List<AnnotatedString.Range<Placeholder>>,
    density: Density,
    resourceLoader: Font.ResourceLoader,
): ParagraphIntrinsics

ParagraphIntrinsics

Source set: Android
@Deprecated(
    "Use an overload that takes `annotations` instead",
    ReplaceWith(
        "ParagraphIntrinsics(text, style, spanStyles, density, fontFamilyResolver, placeholders, true)"
    ),
)
public fun ParagraphIntrinsics(
    text: String,
    style: TextStyle,
    spanStyles: List<AnnotatedString.Range<SpanStyle>>,
    placeholders: List<AnnotatedString.Range<Placeholder>>,
    density: Density,
    fontFamilyResolver: FontFamily.Resolver,
): ParagraphIntrinsics

ParagraphIntrinsics

Source set: Android
public 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

ParagraphIntrinsics

Source set: Common
@Deprecated(
    "Font.ResourceLoader is deprecated, instead use FontFamily.Resolver",
    ReplaceWith(
        "ParagraphIntrinsics(text, style, spanStyles, density, " +
            "createFontFamilyResolver(resourceLoader), placeholders, true)",
        "androidx.compose.ui.text.font.createFontFamilyResolver",
    ),
)
public 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

Source set: Common
@Deprecated(
    "Use an overload that takes `annotations` instead",
    ReplaceWith(
        "ParagraphIntrinsics(text, style, spanStyles, density, fontFamilyResolver, placeholders, true)"
    ),
)
public 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

Source set: Common
public 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.