---
title: "MultiParagraphIntrinsics"
description: "Calculates and provides the intrinsic width and height of text that contains [ParagraphStyle]."
type: "class"
---

<div class='type'>Class</div>


<a id='references'></a>

<div class='sourceset sourceset-common'>Common</div>


```kotlin
class MultiParagraphIntrinsics(
    val annotatedString: AnnotatedString,
    style: TextStyle,
    val placeholders: List<AnnotatedString.Range<Placeholder>>,
    density: Density,
    fontFamilyResolver: FontFamily.Resolver,
) : ParagraphIntrinsics
```


Calculates and provides the intrinsic width and height of text that contains `ParagraphStyle`.

#### Parameters

| | |
| --- | --- |
| annotatedString | the text to be laid out |
| style | the `TextStyle` to be applied to the whole text |
| placeholders | a list of `Placeholder`s that specify ranges of text which will be skipped during layout and replaced with `Placeholder`. It's required that the range of each `Placeholder` doesn't cross paragraph boundary, otherwise `IllegalArgumentException` is thrown. |
| density | density of the device |
| fontFamilyResolver | `Font.ResourceLoader` to be used to load the font given in `SpanStyle`s |



## Secondary Constructors

```kotlin
constructor(
    annotatedString: AnnotatedString,
    style: TextStyle,
    placeholders: List<AnnotatedString.Range<Placeholder>>,
    density: Density,
    resourceLoader: Font.ResourceLoader,
) : this(
    annotatedString,
    style,
    placeholders,
    density,
    createFontFamilyResolver(resourceLoader),
)
```


