Re: GD text positioning



"Dave" <daveandniki@xxxxxxxxxxxx> wrote in message
news:448d727b$0$864$ba4acef3@xxxxxxxxxxxxxxxxx

Yes it does start from there. It also returns the bounding box but you are
throwing away the return value, try:

my $bounds =
$im->stringFT($colour,"c:/winnt/fonts/verdana.ttf",8,0,10,10,"Processor
Usage");

that gives:

9,0-------------101,0
| |
| |
9,13-----------101,13

but the bottom-left edge of the P isn't the same as the bottom left edge of
the bounding box, partly because of the tail on the "g" but also because the
bounding box seems to add an extra pixel or two padding round the text, even
accounting for the anti-aliasing. So I'm still stuck on how to position it
accurately.

Regards
Ian


.