measureUnicodeText

Typefunction
DictionaryLCS
LibraryLiveCode Script
Syntax
measureUnicodeText(unicodeText,object reference,[mode])
Summary

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

Introduced6.5
DeprecatedIn LiveCode 7.0 the language was changed to handle unicode transparently. This means that language functionality which previously aided unicode text manipulation is no longer required. This function should not be used in new code. measureUnicodeText(tText) is equivalent to measureText(textDecode(tText, "UTF16" )).
OSmac, windows, linux, ios, android
Platformsdesktop, server, mobile
Example
put measureUnicodeText(theText,me) into theTextWidth
put measureUnicodeText(theText,me,"size") into theTextSize
put measureUnicodeText(theText,me,"bounds") into theTextBounds
RelatedProperty: formattedWidth, formattedHeight
Function: measureText
Description

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

Tagsui