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

Leadtools.Annotations.Rendering.JavaScript Assembly