Back to Website
Show / Hide Table of Contents

Class TextMeasurer

Handler for measuring text.

Package: @aurigma/design-atoms-text
Remarks

the TextWhizz is used as a text engine.

Constructors

(constructor)(tw)

Constructs a new instance of the TextMeasurer class

Declaration
constructor(tw: ITextWhizzHolder);
Parameters
Type Name Description
ITextWhizzHolder tw

Methods

isTextCropped()

Indicates if text is cropped.

Declaration
isTextCropped(): boolean;
Returns
Type Description
boolean

measureText(scale, isExtendToBlackBox)

Declaration
measureText(scale: number, isExtendToBlackBox?: boolean): RectangleF;
Parameters
Type Name Description
number scale
boolean isExtendToBlackBox
Returns
Type Description
RectangleF

measureTextFrame(useActiveText)

Declaration
measureTextFrame(useActiveText: boolean): RectangleF;
Parameters
Type Name Description
boolean useActiveText
Returns
Type Description
RectangleF
Was this page helpful?
Thanks for your feedback!
Back to top Copyright © 2001–2024 Aurigma, Inc. All rights reserved.
Loading...
    Thank for your vote
    Your opinion is important to us. To provide details, send feedback.
    Send feedback