measureString Method

Summary

Measures the specified string when drawn with the specified font.

Syntax
TypeScript
JavaScript
AnnHtml5RenderingEngine.prototype.measureString = function( 
   text, 
   font 
) 
measureString( 
   text: string, 
   font: AnnFont 
): LeadSizeD; 

Parameters

text

String to measure.

font

Font that defines the text format of the string.

Return Value

The size of the string in container coordinates.

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.