Hey Joel,
Here is a script I made a couple of years back where I DID use another font...
Shawn
<code>
#!perl -w
use GD;
use GD::Text::Wrap;
&make_message;
exit;
sub make_message {
open(PNG,"button.png") or die print "Can't open button.png: $!\n";
$map=newFromPng GD::Image(PNG) or die print "Can't create map: $!\n";
close PNG;
$black=$map->colorAllocate(0,0,0);
my $wp=GD::Text::Wrap->new($map,
width =>98,
line_space=>1,
color =>$black,
text =>'test');
$wp->set_font('FGC.TTF',13);
$wp->set(align=>'center',line_space=>0);
$wp->draw(5,2);
$png_data=$map->png;
open(NEWMAP, ">../../htdocs/test.png");
binmode NEWMAP;
print NEWMAP $png_data;
close NEWMAP;
}
</code>
----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, January 02, 2002 1:26 AM
Subject: Question for those using gd.pm
> Hello, this is just a question to those using Gd.pm
>
> I created an image with text writtien in the center. However, I noticed the
> main page for gd.pm said only 4 font types are supported, such as GdSmallfont
> or what not.
>
> So, basically, it is impossible to use .ttf file such as 'Generic.ttf' if I
> were to have it in the directory of the script, to write out text? We're
> stuck with the basic ugly font?
> lol
>
> Just had to confirm, maybe there is an update/work around that I am not aware
> of
>
> Thank you
>
> Joel
>
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]