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 815 - Text Size in TMapSeries's Marks, in GDI
Summary: Text Size in TMapSeries's Marks, in GDI
Status: RESOLVED FIXED
Alias: None
Product: VCL TeeChart
Classification: Unclassified
Component: Series (show other bugs)
Version: 140512
Hardware: PC Windows
: High major
Target Milestone: v2016.19
Assignee: Steema Issue Manager
URL: http://www.teechart.net/support/viewt...
Keywords:
Depends on:
Blocks:
 
Reported: 2014-06-26 06:07 EDT by yeray alonso
Modified: 2016-10-17 05:46 EDT (History)
0 users

See Also:
Chart Series: ---
Delphi / C++ Builder RAD IDE Version:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description yeray alonso 2014-06-26 06:07:49 EDT
Put a TChart and a TeeCommander on a form and the code below.
From v2014.11, the text looks a bit bigger in GDI and not correctly matching the shape rectangle.
Also, if you open the editor and move the slice for the Mark Font Size, you'll see it is completely buggy: You set a bigger size and the font looks smaller, and the mark shape doesn't fit the text at all.

uses TeeMapSeries, TeCanvas;

procedure TForm1.FormCreate(Sender: TObject);
begin
  Chart1.Canvas:=TTeeCanvas3D.Create;

  Chart1.View3D:=false;
  Chart1.Legend.Visible:=false;

  with Chart1.AddSeries(TMapSeries) as TMapSeries do
  begin
    Marks.Visible:=true;

    with Shapes.Add() do
    begin
      Text := 'line 1'+sLineBreak+'line 2'+sLineBreak+'line 3';
      Points.AddArray([0, 0, 1, 1], [0, 1, 1, 0]);
    end;
  end;
end;