Skip to main content

TextMeasurer

Classes

TextMeasurer

Handler for measuring text.

Remarks

the TextWhizz is used as a text engine.

Implements

Constructors

Constructor
new TextMeasurer(tw): TextMeasurer;
Parameters
ParameterType
twITextWhizzHolder
Returns

TextMeasurer

Methods

isTextCropped()
isTextCropped(): boolean;

Indicates if text is cropped.

Returns

boolean

Implementation of

ITextMeasurer.isTextCropped

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

Measures text.

Parameters
ParameterTypeDefault valueDescription
scalenumberundefinedscale.
isExtendToBlackBoxbooleanfalseindicates if extend to black box.
Returns

RectangleF

Implementation of

ITextMeasurer.measureText

measureTextFrames()
measureTextFrames(useActiveText): RectangleF;

Measures the text frame.

Parameters
ParameterTypeDescription
useActiveTextbooleantrue if you want to use the currently active text, false if the item's original text.
Returns

RectangleF

Implementation of

ITextMeasurer.measureTextFrames

Was this page helpful?