Skip Menu |

This queue is for tickets about the GD CPAN distribution.

Report information
The Basics
Id: 28240
Status: new
Priority: 0/
Queue: GD

Owner: Nobody in particular
Requestors: john [...]

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)

Subject: stringBounds returning 0,0
Date: Sun, 15 Jul 2007 18:40:38 -0500
To: bug-GD [...]
From: "John M. Dlugosz" <john [...]>
Download (untitled) / with headers
text/plain 698b
GD-2.35 ActivePerl under Windows use strict; use warnings; use GD::Simple; use utf8; my $Fontpath= 'F:\Windows\Fonts\\'; # edit to match your system my $img= GD::Simple->new(100,100); $img->font ($Fontpath . "ARIAL.TTF", 12) or print STDERR $@; my $string= "t axis"; my ($dx, $dy)= $img->stringBounds ($string); print "dx is $dx, dy is $dy\n"; $img->angle (270); ($dx, $dy)= $img->stringBounds ($string); print "dx is $dx, dy is $dy\n"; # gives 0,0. Should be transpose of first line. The TrueType text is supposed to support any angle. The documentation for stringWidth indicates that this should return the actual offsets using the current angle etc. Instead, it returns 0.

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to