TextMetrics - Find substring coordinates, line widths, and much more
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.
14 Comments