added a way to measure wrapped text