PixelsPerInch not respected

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
David Novo
Newbie
Newbie
Posts: 71
Joined: Fri Jul 02, 2004 4:00 am
Location: Culver City
Contact:

PixelsPerInch not respected

Post by David Novo » Fri Dec 16, 2005 6:56 am

Hello.

How come if I set the

chart1.title.font.pixelsPerInch:=500

there is no difference in the font size on the chart as compared to leaving the pixelsPerInch alone. However, if in the formPaint for a form I do

canvas.font.pixelsperinch:=500;
canvas.font.size:=8;
canvas.font.color:=clblack;
canvas.textout(5,5,'hello');

Then the font size on the form is much bigger than if I left the canvas.font.pixelsPerInch.

It seems that tchart is ignoring the pixelsPerInch. Is there a way to have it use the pixelsPerInch.

The actual height in pixels of a font is supposed to be something like:
size in pixels=size in points * pixelsPerInch/72 so that I can use pixelsPerInch to adjust the size of a font.

David Novo
Newbie
Newbie
Posts: 71
Joined: Fri Jul 02, 2004 4:00 am
Location: Culver City
Contact:

Post by David Novo » Fri Dec 16, 2005 7:10 am

Hi,

I just found that I can use the view3dOptions.fontZoom property to accomplish what I need.

Thanks,
Dave

Post Reply