Thanks for the reply. I've played around with the dlineinfo() method, but it returns information in Pixels. How do I convert from pixels to actual width of characters and height of lines?
You can use the ascent/descent information from the fontMetrics call. Of course, this does not help if you have embedded images or widgets in your text widget.