Perl GD module- using fonts
by Dhivya Arasappan/O/VCU other posts by this author
Nov 18 2006 2:38PM messages near this date
view in the new Beta List Site
RE: ASP/PerlScript Issue - Please help
|
Re: Perl GD module- using fonts - issue resolved
<font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size="2"> Hi,
<br> <br>I'm using perl GD module. Everything is working fine except for the fonts.
<br> <br>I tried to create a string at a particular location by saying:
<br> <br>$image = new GD::Image(401,401);
<br> $image->string(gdMediumBoldFont, 60,40, "<---- UP", $black);
<br> <br>and I get the following error:
<br> <h1>Software error:
</h1>
<font face="Courier New,Courier,monospace" size="3"> font is not of type GD::Font<br><br><fon
t size="3"> <br>The funny thing is that the exact statement works if i put it in<br><br>anoth
er program, running off the same directory on the same local host.<br> <br>I cant figure out
whats wrong.<br> <br><br>I also tried loading a font by:<br><br><br>my $font = GD::Font->l
oad("/usr/X11R6/lib/X11/fonts/Type1/cour.pfa");<br> <br><br>, but then I get this:<br><br></f
ont> <br><br><br></font><h1>Software error:
</h1>
Success at otherscoresdump.10-27-06.pl line 1318.
<br> <br><br>
<font face="Courier New,Courier,monospace" size="3"> <font size="3">Any ideas/suggestions wou
ld be really appreciated. <br> <br><br>thanks<br><br>dhivya<br><br></font><br><br></font><br>
<br> <br></font>
Thread:
Dhivya Arasappan/O/VCU
Dhivya Arasappan/O/VCU
|