S
Stefano dS
Hello group,
This is my box:
Slackware Linux -current-
Perl 5.8.2
freetype 2.1.5
gd 2.0.12
and GD Perl module: 2.11
Lots of TT fonts in /these/ttf/
I'm checking the capabilities of TT font rendering of
GD perl module without success:
<code>
use GD;
use Data:umper ;
$im = new GD::Image(400,400);
$im->colorAllocate(255,255,238);
$brown = $im->colorAllocate(159,30,0);
$textstring = "Hello Mars!";
my @b = () ;
@b = $im->stringFT(
$red,
'/these/ttf/arial.ttf',
14, 0, 100,100,
$textstring
) ;
print STDERR Dumper(\@b) ;
open (IMAGE,"> test.png") || die;
print IMAGE $im->png;
close (IMAGE);
</code>
Every execution of the script above poduces an empty image.
No error in $@, but, and that let me wonder if it should be a bug,
the 'text box' array returned by strinfFT is filled with the same value as
if GD was busy to write everything in a single point.
I didn't succeed also with the demos/truetype_test: same empty results.
Thanks in advance for your help... if any!
stefano
This is my box:
Slackware Linux -current-
Perl 5.8.2
freetype 2.1.5
gd 2.0.12
and GD Perl module: 2.11
Lots of TT fonts in /these/ttf/
I'm checking the capabilities of TT font rendering of
GD perl module without success:
<code>
use GD;
use Data:umper ;
$im = new GD::Image(400,400);
$im->colorAllocate(255,255,238);
$brown = $im->colorAllocate(159,30,0);
$textstring = "Hello Mars!";
my @b = () ;
@b = $im->stringFT(
$red,
'/these/ttf/arial.ttf',
14, 0, 100,100,
$textstring
) ;
print STDERR Dumper(\@b) ;
open (IMAGE,"> test.png") || die;
print IMAGE $im->png;
close (IMAGE);
</code>
Every execution of the script above poduces an empty image.
No error in $@, but, and that let me wonder if it should be a bug,
the 'text box' array returned by strinfFT is filled with the same value as
if GD was busy to write everything in a single point.
I didn't succeed also with the demos/truetype_test: same empty results.
Thanks in advance for your help... if any!
stefano