---
title: "ITextMeasurer | Customer&#x27;s Canvas"
canonical: "https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-text/ITextMeasurer/"
archived: false
applies_to:
  - product: "Customer's Canvas On-Premises"
  - product: "Customer's Canvas Hub"
    versions: ["cloud"]
    entity_id: "https://customerscanvas.com/products/hub#software-application"
  - product: "Design Atoms JS"
    versions: ["7.4"]
---

# ITextMeasurer

**Applies to:** Customer's Canvas On-Premises; Customer's Canvas Hub cloud; Design Atoms JS 7.4

> API reference for the ITextMeasurer module in @aurigma/design-atoms-text.

## Interfaces

### ITextMeasurer

Handler for measuring text.

#### 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`
