TCanvas and font size


2004-08-25 10:27:09 PM
cppbuilder91
Hi All,
I hope someone can answer this for me.
I have a plotting routine
I pass it the Canvas that I wish to draw on,
as well as the height and width of the object that owns the canvas.
(
for screen plot,
ClientWidth,
ClientHeight
for printing,
TPrinter * Paper = Printer()
Paper->PageWidth,
Paper->PageHeight
)
When I output text, I was using
float size = 14 * 72.0 / ((TCanvas *)Target)->Font->PixelsPerInch;
only to find out that Target->Font->PixelsPerInch did not reflect the true
resolution of the canvas being drawn on.
Is this an expected result of am I missing something?
Thanx
Stephan