getTextSize Method

Summary

Gets the size of a string of text.

Syntax
TypeScript
JavaScript
AnnSvgTextObjectRenderer.prototype.getTextSize = function( 
   text, 
   annFont, 
   layoutArea 
) 
getTextSize( 
   text: string, 
   annFont: AnnFont, 
   layoutArea: LeadSizeD 
): LeadSizeD; 

Parameters

text

The text string to measure.

annFont

The font to use.

layoutArea

The maximum layout area for the text.

Remarks

This method is called by the renderer to measure the size of a text string using a specific font and clipping rectangle. Derived classes can override this method and provide their own implementation.

Requirements
Target Platforms
Help Version 21.0.2021.6.30
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Annotations.Rendering.JavaScript Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.