---
title: "ITextMeasurer | Customer's Canvas On-Premises"
canonical: "https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-text/ITextMeasurer/"
---

# ITextMeasurer

> Handler for measuring text.

## Interfaces

### ITextMeasurer

#### Methods

##### isTextCropped()

```ts
isTextCropped(): boolean;
```

Indicates if text is cropped.

###### Returns

`boolean`

##### measureText()

```ts
measureText(scale, isExtendToBlackBox?): RectangleF;
```

Measures text.

###### Parameters

| Parameter | Type | Description |
| ------ | ------ | ------ |
| `scale` | `number` | scale. |
| `isExtendToBlackBox?` | `boolean` | indicates if extend to black box. |

###### Returns

`RectangleF`

##### measureTextFrames()

```ts
measureTextFrames(useActiveText): RectangleF;
```

Measures the text frame.

###### Parameters

| Parameter | Type | Description |
| ------ | ------ | ------ |
| `useActiveText` | `boolean` | true if you want to use the currently active text, false if the item's original text. |

###### Returns

`RectangleF`
