TextMeasurer
Classes
TextMeasurer
Handler for measuring text.
Remarks
the TextWhizz is used as a text engine.
Implements
Constructors
Constructor
new TextMeasurer(tw): TextMeasurer;
Parameters
| Parameter | Type |
|---|---|
tw | ITextWhizzHolder |
Returns
Methods
isTextCropped()
isTextCropped(): boolean;
Indicates if text is cropped.
Returns
boolean
Implementation of
measureText()
measureText(scale, isExtendToBlackBox?): RectangleF;
Measures text.
Parameters
| Parameter | Type | Default value | Description |
|---|---|---|---|
scale | number | undefined | scale. |
isExtendToBlackBox | boolean | false | indicates if extend to black box. |
Returns
RectangleF
Implementation of
measureTextFrames()
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