This content has been marked as final.
Show 1 reply
-
1. Re: find spaces greater than particular width value
Harbs. Jan 2, 2013 5:45 AM (in response to rajeshselvaraju)You can use a approach like this:
1) grab myText.characters.everyItem().horizontalOffset. This will give you an array of every horizontal offset in your text.
2) Grab myText.contents which will give you a string of all your text.
3) Search your string for spaces and check the first array for the horizontalOffsets surrounding the space.
This will allow you to do the check with only two DOM interactions and it should be very fast iterating over the string and array.


