Skip to main content

measureUnicodeText

Type​

function

Summary​

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])

Description​

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

Important

As this function is deprecated it should not be used in new code. Using measureUnicodeText(tText) is equivalent to measureText(textDecode(tText, "UTF16" )).

Examples​

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

function: measureText

property: formattedWidth, formattedHeight

Compatibility and Support​

Introduced

LiveCode 6.5

OS

mac

windows

linux

ios

android

Platforms

desktop

server

mobile

Thank you for your feedback!

Was this page helpful?