I
IanW
I am writing some text on an image like this:
$im->stringFT($colour,"c:/winnt/fonts/verdana.ttf",8,0,10,10,"Processor
Usage");
The problem is the positioning. It seems to start 10 pixels from the left of
the image OK, but only 2 pixels down on the y coordinate. In fact, the
coords of the bottom left edge of the "P" in "Processor" is 10,10. Does it
really render it starting from there? That isn't even the bottom-left edge
of the bounding box either, because there's the tail of the "g" to consider.
Any ideas how can I accurately position the text?
Ian
$im->stringFT($colour,"c:/winnt/fonts/verdana.ttf",8,0,10,10,"Processor
Usage");
The problem is the positioning. It seems to start 10 pixels from the left of
the image OK, but only 2 pixels down on the y coordinate. In fact, the
coords of the bottom left edge of the "P" in "Processor" is 10,10. Does it
really render it starting from there? That isn't even the bottom-left edge
of the bounding box either, because there's the tail of the "g" to consider.
Any ideas how can I accurately position the text?
Ian