Steema Issues Database

Note: This database is for bugs and wishes only. For technical support help, if you are a customer please visit our online forums;
otherwise you can use StackOverflow.
Before using this bug-tracker we recommend a look at this document, Steema Bug Fixing Policy.



Bug 1907

Summary: The calculation of position of superscript text is incorrect
Product: VCL TeeChart Reporter: sandra pazos <sandra>
Component: CanvasAssignee: yeray alonso <yeray>
Status: RESOLVED FIXED    
Severity: normal CC: yeray
Priority: Normal    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows   
URL: http://www.teechart.net/support/viewtopic.php?f=17&t=16658
Chart Series: --- Delphi / C++ Builder RAD IDE Version:
Attachments: test project and screenshot

Description sandra pazos 2017-08-18 06:29:29 EDT
The calculation of position of  superscript text is incorrect. The code below shows how you can reproduce the problem.

procedure TForm2.Chart1AfterDraw(Sender: TObject);
begin
Chart1.Canvas.TextOut(125, 140, 'R <sup>2</sup> = 0.95', True);
end;

procedure TForm2.FormCreate(Sender: TObject);
begin
Series1.FillSampleValues(10);
end;
Comment 1 yeray alonso 2020-03-16 04:33:35 EDT
Created attachment 933 [details]
test project and screenshot

Just found a fix.
The zip attached includes a test project and a screenshot using the fix proposal.