Re: GD text positioning
- From: "IanW" <whoever@xxxxxxxxxxxxx>
- Date: Mon, 12 Jun 2006 15:58:34 +0100
"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
.
- Follow-Ups:
- Re: GD text positioning
- From: Dave
- Re: GD text positioning
- References:
- GD text positioning
- From: IanW
- Re: GD text positioning
- From: Dave
- GD text positioning
- Prev by Date: Re: best method to perform operations on word lists
- Next by Date: Re: Using tee with Perl's system command
- Previous by thread: Re: GD text positioning
- Next by thread: Re: GD text positioning
- Index(es):