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 <sc...@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" <p...@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@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode