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 22.0.2023.1.31
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.

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