Page 1 of 1

PixelsPerInch not respected

Posted: Fri Dec 16, 2005 6:56 am
by 9338026
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.

Posted: Fri Dec 16, 2005 7:10 am
by 9338026
Hi,

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

Thanks,
Dave