Livecode Wiki
Advertisement

Returns the width, size or bounds of the unicode text drawn with the effective font attribute of the given object.Syntax:

measureUnicodeText(unicodeText,object reference,[mode])

Examples:

put measureUnicodeText(theText,me) into theTextWidth
put measureUnicodeText(theText,me,"size") into theTextSize
put measureUnicodeText(theText,me,"bounds") into theTextBounds

Use the measureUnicodeText function to find the dimensions of unicode text drawn with the effective font attributes of an object.

See also: formattedHeight (property),

Advertisement