GreenSock


TextMetrics - Find substring coordinates, line widths, and much more

Posted in Text by jack on the August 7th, 2007

Have you ever needed to find out where the line breaks occur in a dynamic TextField? How about the precise x/y coordinates of a particular phrase/string along with its width & height so that you could highlight it somehow? Or maybe the width of each line of text? That’s all possible with the gs.utils.text.TextMetrics class.

More...