Laying out text
Scott Rossi
scott at tactilemedia.com
Sun Feb 22 23:55:08 EST 2015
Actually, the formattedWidth returns the amount of space occupied by the
field's text, regardless of the margins, if you refer to a textChunk, like
"line 1 of field 1". The margins value affects the result if you refer to
the field itself.
Regards,
Scott Rossi
Creative Director
Tactile Media, UX/UI Design
On 2/22/15, 8:04 PM, "Paul Hibbert" <paul at livecode.org> wrote:
>if you use measureText it only measures the text according to the
>parameters that you supply, it doesn't take into account any properties
>other than font and font size AFAIK, whereas formattedWidth measures the
>text in the field along with the margins effectively giving the field
>width.
More information about the use-livecode
mailing list