I have to write a control (TLabel) that will accepted simple HTML tags and render the rich text on the control canvas. I am wondering if anyone has found a tutorial on the best practices for this. Some of the questions I have are:
How do you anticipate word breaks?
How do you calculate the total RECT since some of the lines may be different heights?
How do I keep track of where I am as I render the text on the Canvas?
Any hints on how to do this will be appreciated.