TChart.Title not rendering correct when using HTML
Posted: Wed Apr 27, 2016 9:13 am
There seem to be some problems with TChart - Title when using HTML as text format:
I used "<b>Header</b><small>(Details)</small>Test" (without the quotes) and a font size of 13 to get 1. The Header isn't centered in a correct way (centering seems to be based on the plain html-string)
2. The closing </small> - Tag is not recogniced
3. "Test" (and "</small>") is placed with a wrong baseline
By experimenting I found, that removing the "/" from the closing </small> tag has another effect: It seems, as the </small> - tag is ignored the next string is drawn even smaller BUT also the baseline moves down (as if <sub></sub> where used).
Note: I do only need the first 2 parts "<b>Header</b><small>(Details)</small>", the "Test" string was just added when experimenting with the HTML expression.
I used "<b>Header</b><small>(Details)</small>Test" (without the quotes) and a font size of 13 to get 1. The Header isn't centered in a correct way (centering seems to be based on the plain html-string)
2. The closing </small> - Tag is not recogniced
3. "Test" (and "</small>") is placed with a wrong baseline
By experimenting I found, that removing the "/" from the closing </small> tag has another effect: It seems, as the </small> - tag is ignored the next string is drawn even smaller BUT also the baseline moves down (as if <sub></sub> where used).
Note: I do only need the first 2 parts "<b>Header</b><small>(Details)</small>", the "Test" string was just added when experimenting with the HTML expression.