Laying out text

Paul Hibbert paul at livecode.org
Mon Feb 23 01:15:21 EST 2015


Agreed, I worded the explanation badly, I was testing against referring to a field as per the original topic and didn't explain well enough.

Paul

> On Feb 22, 2015, at 8:55 PM, Scott Rossi <scott at tactilemedia.com> wrote:
> 
> 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.
> 
> 
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode





More information about the use-livecode mailing list