Page 1 of 1

Font size of TRectangleTool

Posted: Thu Mar 30, 2006 11:38 am
by 9339785
Hi,
I want to modify the font size of a TRectangleTool but I discovered that several values are not taken into account : 6, 7, 9, 11, ....
Why this limitation on the font size ?
How can I know the font size allowed ?

Thanks
Franck

Posted: Thu Mar 30, 2006 11:50 am
by narcis
Hi Franck,

All values are considered, just try adding a TChart with a TRectangleTool and two buttons on a form an run:

Code: Select all

procedure TForm1.FormCreate(Sender: TObject);
begin
  ChartTool1.Shape.Font.Size:=6;
end;

procedure TForm1.Button1Click(Sender: TObject);
begin
  ChartTool1.Shape.Font.Size:=ChartTool1.Shape.Font.Size+1;
end;

procedure TForm1.Button2Click(Sender: TObject);
begin
  ChartTool1.Shape.Font.Size:=ChartTool1.Shape.Font.Size-1;
end;

Posted: Thu Mar 30, 2006 1:08 pm
by 9339785
For the MS SANS SERIF font, the size 6 7 9 11 are not take into account by the TRectangle tool.

Posted: Mon Apr 03, 2006 10:18 am
by Pep
Hi,

this depends on the Fonts you have installed on your system.